diff options
Diffstat (limited to 'src')
-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); |