diff options
author | Chia-I Wu <[email protected]> | 2019-04-09 20:46:38 +0000 |
---|---|---|
committer | Gurchetan Singh <[email protected]> | 2019-04-15 23:25:47 +0000 |
commit | c45c889f95b07cc95cf5ad6fdefc2fa9bb66b960 (patch) | |
tree | 155943eba1a18178975eb96fc9a6191e3eda64c7 | |
parent | 442e75071bae1cc822d1a490f5012c63e8e646df (diff) |
virgl: fix fence fd version check
Fixes: d1a1c21e762 ("virgl: native fence fd support")
Signed-off-by: Chia-I Wu <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
-rw-r--r-- | src/gallium/winsys/virgl/drm/virgl_drm_winsys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c index e78c0856145..4cefbe92077 100644 --- a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c +++ b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c @@ -47,7 +47,7 @@ #define VIRGL_DRM_VERSION(major, minor) ((major) << 16 | (minor)) -#define VIRGL_DRM_VERSION_FENCE_FD VIRGL_DRM_VERSION(1, 0) +#define VIRGL_DRM_VERSION_FENCE_FD VIRGL_DRM_VERSION(0, 1) static inline boolean can_cache_resource(struct virgl_hw_res *res) @@ -966,7 +966,7 @@ static int virgl_drm_get_version(int fd) else if (version->version_major != 0) ret = -EINVAL; else - ret = version->version_minor; + ret = VIRGL_DRM_VERSION(0, version->version_minor); drmFreeVersion(version); |