FreeBSDDesktop / kms-drm

the DRM part of the linuxkpi-based KMS
63 stars 26 forks source link

Backport DRM_CRTC_IN_VBLANK for wlroots >= 0.7 on FreeBSD 11.* #213

Closed jbeich closed 3 years ago

jbeich commented 4 years ago

Required by https://github.com/swaywm/wlroots/pull/1738 (or https://github.com/freebsd/freebsd-ports/commit/ab8a57f405f4) to fix the following error. Tested on -CURRENT (with drm-v4.16 build fixes) and Sway 1.4.

$ sway -dc /dev/null
[...]
[sway/server.c:40] Preparing Wayland server initialization
[backend/session/direct-freebsd.c:207] Using tty /dev/ttyv3
[backend/session/direct-freebsd.c:296] Successfully loaded direct session
[backend/backend.c:157] Found 1 GPUs
[backend/drm/backend.c:159] Initializing DRM backend for /dev/dri/card0 (i915)
[backend/drm/drm.c:56] DRM_CRTC_IN_VBLANK_EVENT unsupported
[backend/backend.c:163] Failed to open DRM device 12
[backend/backend.c:304] Failed to open any DRM device
[backend/noop/backend.c:51] Creating noop backend
[sway/server.c:47] Unable to create backend
evadot commented 4 years ago

LGTM

zeising commented 4 years ago

Have you tested this on 11?

jbeich commented 4 years ago

No, I don't use FreeBSD 11. Regression is unlikely because it's a new feature without new function calls and only 1 consumer (wlroots).

jbeich commented 3 years ago

Obsolete after https://github.com/freebsd/freebsd-ports/commit/620968a43a5f.