drm: virtio-gpu: set atomic flag
authorRob Herring <robh@kernel.org>
Wed, 13 Jan 2016 21:52:10 +0000 (15:52 -0600)
committerDave Airlie <airlied@redhat.com>
Wed, 10 Feb 2016 22:56:23 +0000 (08:56 +1000)
Advertise atomic mode setting capability to user space.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/virtio/virtgpu_drv.c

index b40ed6061f050b1ff817e2f164e784275df84b8f..7f898cfdc7468c6697a50ede409749f3e89fa08b 100644 (file)
@@ -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_RENDER,
+       .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME | DRIVER_RENDER | DRIVER_ATOMIC,
        .set_busid = drm_virtio_set_busid,
        .load = virtio_gpu_driver_load,
        .unload = virtio_gpu_driver_unload,