summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/virtio/virtgpu_drv.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-06-16 07:41:56 +0200
committerGerd Hoffmann <kraxel@redhat.com>2015-10-16 10:44:03 +0200
commitf3380a3015541f13c25c980011c046e7114dff3d (patch)
treee0e87caef28f106de3f4c0a0b9e503fb840b67a1 /drivers/gpu/drm/virtio/virtgpu_drv.c
parentvirtio-gpu: add basic prime support (diff)
downloadlinux-f3380a3015541f13c25c980011c046e7114dff3d.tar.xz
linux-f3380a3015541f13c25c980011c046e7114dff3d.zip
virtio-gpu: mark as a render gpu
Also add DRM_RENDER_ALLOW to the ioctls. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/virtio/virtgpu_drv.c')
-rw-r--r--drivers/gpu/drm/virtio/virtgpu_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.c b/drivers/gpu/drm/virtio/virtgpu_drv.c
index 1f15ef8f2356..b40ed6061f05 100644
--- a/drivers/gpu/drm/virtio/virtgpu_drv.c
+++ b/drivers/gpu/drm/virtio/virtgpu_drv.c
@@ -118,7 +118,7 @@ static const struct file_operations virtio_gpu_driver_fops = {
static struct drm_driver driver = {
- .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME,
+ .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME | DRIVER_RENDER,
.set_busid = drm_virtio_set_busid,
.load = virtio_gpu_driver_load,
.unload = virtio_gpu_driver_unload,