https://github.com/swaywm/wlroots/blob/3984c81faae58233ce9068c6bf9c673b3b99ee30/backend/drm/drm.c#L1508