Verified Commit 40eca7d3 authored by Gert Wollny's avatar Gert Wollny Committed by Robert Foss

virgl: Use file descriptor instead of un-allocated object

The structure qdws is not allocated at this point, nor is the
file descriptor set to it's member. Use the fd directly instead.

Fixes:  d1a1c21e
    virgl: native fence fd support
Signed-off-by: 's avatarGert Wollny <gert.wollny@collabora.com>
parent 78fdc507
......@@ -892,7 +892,7 @@ virgl_drm_winsys_create(int drmFD)
if (ret < 0 || !gl)
return NULL;
drm_version = virgl_drm_get_version(qdws->fd);
drm_version = virgl_drm_get_version(drmFD);
if (drm_version < 0)
return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment