We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14d9a37 commit d89c0c8Copy full SHA for d89c0c8
drivers/gpu/drm/virtio/virtgpu_drv.c
@@ -163,10 +163,11 @@ static __poll_t virtio_gpu_poll(struct file *filp,
163
struct drm_file *drm_file = filp->private_data;
164
struct virtio_gpu_fpriv *vfpriv = drm_file->driver_priv;
165
struct drm_device *dev = drm_file->minor->dev;
166
+ struct virtio_gpu_device *vgdev = dev->dev_private;
167
struct drm_pending_event *e = NULL;
168
__poll_t mask = 0;
169
- if (!vfpriv->ring_idx_mask)
170
+ if (!vgdev->has_virgl_3d || !vfpriv || !vfpriv->ring_idx_mask)
171
return drm_poll(filp, wait);
172
173
poll_wait(filp, &drm_file->event_wait, wait);
0 commit comments