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:  d1a1c21e76
    virgl: native fence fd support

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
This commit is contained in:
Gert Wollny 2018-11-19 10:56:23 +01:00 committed by Robert Foss
parent 78fdc507a3
commit 40eca7d3e1
No known key found for this signature in database
GPG Key ID: B79A0B6A11EEF727
1 changed files with 1 additions and 1 deletions

View File

@ -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;