drm/virtio: Don't create a context with default param if context_init is supported
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Sun, 20 Oct 2024 22:47:25 +0000 (01:47 +0300)
committerDmitry Osipenko <dmitry.osipenko@collabora.com>
Mon, 18 Nov 2024 18:17:42 +0000 (21:17 +0300)
commit086b9f27f0ab38df05b2d839a69c8daead8019ae
tree82c4a93fe9e3e0e0876dc9cfeb34e15a6447ca89
parentc85021f35ace0081081b3fcbd0b411ad085dc091
drm/virtio: Don't create a context with default param if context_init is supported

Xorg context creation fails for native contexts that use
VIRTGPU_CONTEXT_INIT because context is already initialized implicitly
when dumb buffer is created. Fix it by not creating default vrend context
if context_init is supported.

Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241020224725.179937-1-dmitry.osipenko@collabora.com
drivers/gpu/drm/virtio/virtgpu_gem.c