path: root/drivers/gpu/drm/virtio/virtgpu_gem.c
diff options
authorDave Airlie <>2020-05-08 15:02:49 +1000
committerDave Airlie <>2020-05-08 15:04:25 +1000
commita9fe6f18cde03c20facbf75dc910a372c1c1025b (patch)
tree6c1477a1448c33d4c6043b11e32d5db92086166b /drivers/gpu/drm/virtio/virtgpu_gem.c
parentc61b0b97ef10ab7f4022707c516b5c32df2bd738 (diff)
parent5fe89a6acd668cbd1817fcdef5caa9fee568c2e8 (diff)
Merge tag 'drm-misc-fixes-2020-05-07' of git:// into drm-fixesdrm-fixes-2020-05-08
A few minor fixes for an ordering issue in virtio, an (old) gcc warning in sun4i, a probe issue in ingenic-drm and a regression in the HDCP support. Signed-off-by: Dave Airlie <> From: Maxime Ripard <> Link:
Diffstat (limited to 'drivers/gpu/drm/virtio/virtgpu_gem.c')
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_gem.c b/drivers/gpu/drm/virtio/virtgpu_gem.c
index 0d6152c99a27..f0d5a8974677 100644
--- a/drivers/gpu/drm/virtio/virtgpu_gem.c
+++ b/drivers/gpu/drm/virtio/virtgpu_gem.c
@@ -39,6 +39,9 @@ int virtio_gpu_gem_create(struct drm_file *file,
int ret;
u32 handle;
+ if (vgdev->has_virgl_3d)
+ virtio_gpu_create_context(dev, file);
ret = virtio_gpu_object_create(vgdev, params, &obj, NULL);
if (ret < 0)
return ret;