vc4: Fix query_dmabuf_modifiers mis-reporting external_only property
authorChris Lord <clord@igalia.com>
Thu, 5 Mar 2020 16:37:53 +0000 (16:37 +0000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 09:10:13 +0000 (09:10 +0000)
commitb760ccfedb69c926803a4b8d9e61f800e9fc70ed
treebfb38fcfd08aa35a3c1ac0fa9a6a4f6f4f325c36
parent61f2e8d9bbde0d4416663fd61c4f63a5a763e96a
vc4: Fix query_dmabuf_modifiers mis-reporting external_only property

vc4_screen_query_dmabuf_modifiers doesn't consider that the given format
may only be supported by lowering, which only happens for external
textures.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4063>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4063>
src/gallium/drivers/vc4/vc4_screen.c