virgl: native fence fd support

Graphics / Mesa 3D Graphics Library / Mesa - Robert Foss [collabora.com] - 16 November 2018 13:41 EST

Following the support for fences on the virtio driver add support for native fence on virgl. This was somewhat based on the freedeno one.

d1a1c21e76 virgl: native fence fd support
src/gallium/drivers/virgl/virgl_context.c | 46 ++++++++++--
src/gallium/drivers/virgl/virgl_screen.c | 12 +++-
src/gallium/drivers/virgl/virgl_winsys.h | 14 +++-
src/gallium/winsys/virgl/drm/virgl_drm_winsys.c | 84 +++++++++++++++++++++-
src/gallium/winsys/virgl/drm/virgl_drm_winsys.h | 2 +
src/gallium/winsys/virgl/drm/virtgpu_drm.h | 14 +++-
.../winsys/virgl/vtest/virgl_vtest_winsys.c | 10 ++-
7 files changed, 166 insertions(+), 16 deletions(-)

Upstream: cgit.freedesktop.org


  • Share