For anyone struggling #X11 stopped working on #FreeBSD after upgrading main branch of #ports tree to commit 316774b85e4fc8858989a98da1a36075b6cbc8d2 and later with nvidia GPUs, reverting following commits and rebuild graphics/drm-[61|66]-kmod whichever you're using and corresponding graphics/nvidia-drm-[61|66]-kmod[-devel] you're using and reboot would help.
https://cgit.freebsd.org/ports/commit/?id=316774b85e4fc8858989a98da1a36075b6cbc8d2
https://cgit.freebsd.org/ports/commit/?id=09f1e5c29432d77a992f5f554f48986ef8674e9c
https://cgit.freebsd.org/ports/commit/?id=803213ed04ad14ea91a65cd48e6e8d6d610e3b98
https://cgit.freebsd.org/ports/commit/?id=ac934345a14f64a3e6f09bbde56f0dcacc8b3066
This issue is tracked at #FreeBSD Bugzilla.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289647