virgl: introduce virgl_drm_fence
authorChia-I Wu <olvaffe@gmail.com>
Tue, 9 Apr 2019 20:16:00 +0000 (20:16 +0000)
committerGurchetan Singh <gurchetansingh@chromium.org>
Mon, 15 Apr 2019 23:25:47 +0000 (23:25 +0000)
commit442e75071bae1cc822d1a490f5012c63e8e646df
tree7bcda4393f037bd1bb614cf09b311b648a5df442
parent334103efbfcd37488eed49e16871f46d56d8e9a8
virgl: introduce virgl_drm_fence

virgl_drm_fence can wrap either a fence fd or a virgl_hw_res.  Because a
fence fd is cheaper than a virgl_hw_res, we use it whenever it is
available.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/winsys/virgl/drm/virgl_drm_winsys.c
src/gallium/winsys/virgl/drm/virgl_drm_winsys.h