virgl: fix fence fd version check
Fixes: d1a1c21e76
("virgl: native fence fd support")
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:

committed by
Gurchetan Singh

parent
442e75071b
commit
c45c889f95
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user