]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: create context before RESOURCE_CREATE_2D in 3D mode
authorGurchetan Singh <gurchetansingh@chromium.org>
Fri, 1 May 2020 18:55:57 +0000 (11:55 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 4 May 2020 07:53:37 +0000 (09:53 +0200)
commit23f910d00268076a11dd6f23d035a613861ab4aa
treedae7a7ad11e08d8911cc183f9c02fb2ebcac00ee
parent3109d1e2dcabaa011f4a3ae1d1844f536d17e1d7
drm/virtio: create context before RESOURCE_CREATE_2D in 3D mode

If 3D is enabled, but userspace requests a dumb buffer, we will
call CTX_ATTACH_RESOURCE before actually creating the context.

Fixes: ec15ca83305a ("drm/virtio: enqueue virtio_gpu_create_context after the first 3D ioctl")
Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20200501185557.740-1-gurchetansingh@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_gem.c
drivers/gpu/drm/virtio/virtgpu_ioctl.c