From: Chia-I Wu Date: Tue, 9 Apr 2019 20:46:38 +0000 (+0000) Subject: virgl: fix fence fd version check X-Git-Tag: upstream/19.3.0~7314 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c45c889f95b07cc95cf5ad6fdefc2fa9bb66b960;p=platform%2Fupstream%2Fmesa.git virgl: fix fence fd version check Fixes: d1a1c21e762 ("virgl: native fence fd support") Signed-off-by: Chia-I Wu Reviewed-by: Emil Velikov --- diff --git a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c index e78c085..4cefbe9 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);