drm/virtio: set fb_modifiers_not_supported
authorChia-I Wu <olvaffe@gmail.com>
Wed, 31 Aug 2022 19:06:01 +0000 (12:06 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 7 Sep 2022 10:13:22 +0000 (12:13 +0200)
commit85faca8ca0f659263b5fb2385e4c231cc075bd84
tree84d4a6305adbf685c2dc8c6f4a0c05b75ce4663f
parentfad08d6248f88c9420eff5471ad34978a5c6c805
drm/virtio: set fb_modifiers_not_supported

Without this, the drm core advertises LINEAR modifier which is
incorrect.

Also userspace virgl does not support modifiers.  For example, it causes
chrome on ozone/drm to fail with "Failed to create scanout buffer".

Fixes: 2af104290da5 ("drm: introduce fb_modifiers_not_supported flag in mode_config")
Suggested-by: Shao-Chuan Lee <shaochuan@chromium.org>
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20220831190601.1295129-1-olvaffe@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_display.c