virgl: hook new get_fd proc for drm winsys
authorRyan Neph <ryanneph@google.com>
Tue, 4 Apr 2023 15:15:14 +0000 (08:15 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 4 Apr 2023 19:21:59 +0000 (19:21 +0000)
Fixes: 2ade6917dacb ("virgl: Add support for `get_screen_fd`")
Signed-off-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22292>

src/gallium/winsys/virgl/drm/virgl_drm_winsys.c

index 2d7cc32..7c111e9 100644 (file)
@@ -1281,6 +1281,7 @@ virgl_drm_winsys_create(int drmFD)
    qdws->base.fence_server_sync = virgl_fence_server_sync;
    qdws->base.fence_get_fd = virgl_fence_get_fd;
    qdws->base.get_caps = virgl_drm_get_caps;
+   qdws->base.get_fd = virgl_drm_winsys_get_fd;
    qdws->base.supports_fences =  drm_version >= VIRGL_DRM_VERSION_FENCE_FD;
    qdws->base.supports_encoded_transfers = 1;