virgl: Clean up fences commit

Remove a dead variable, a int->bool conversion and some
whitespace changes.
Signed-off-by: Robert Foss's avatarRobert Foss <robert.foss@collabora.com>
Reviewed-by: 's avatarEmil Velikov <emil.velikov@collabora.com>
parent c2e3d0f1
......@@ -340,7 +340,7 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param)
case PIPE_CAP_VIDEO_MEMORY:
return 0;
case PIPE_CAP_NATIVE_FENCE_FD:
return !!vscreen->vws->supports_fences;
return vscreen->vws->supports_fences;
default:
return u_pipe_screen_get_param_defaults(screen, param);
}
......
......@@ -933,7 +933,6 @@ virgl_drm_winsys_create(int drmFD)
qdws->base.get_caps = virgl_drm_get_caps;
uint32_t value = 0;
getparam.param = VIRTGPU_PARAM_CAPSET_QUERY_FIX;
getparam.value = (uint64_t)(uintptr_t)&value;
......
......@@ -57,7 +57,6 @@ struct virgl_drm_winsys
{
struct virgl_winsys base;
int fd;
int drm_version;
struct list_head delayed;
int num_delayed;
unsigned usecs;
......
......@@ -702,6 +702,5 @@ virgl_vtest_winsys_wrap(struct sw_winsys *sws)
vtws->base.flush_frontbuffer = virgl_vtest_flush_frontbuffer;
return &vtws->base;
}
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