v3dv: expose DRM modifiers based on supported features
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 1 Sep 2020 06:56:47 +0000 (08:56 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:33 +0000 (21:21 +0000)
commit4cc7d6a85f2eccf90307989bbdae6fc9b0a301c0
treeae94840a6830446a3d4a34db3b3d0d4058944759
parentfdcc36aad4002fc9536b5a793f4211acdfb9b084
v3dv: expose DRM modifiers based on supported features

So far we have only been exposing linear for WSI formats and UIF on
everythig else, but we should instead expose linear or UIF based
on whether the underlying format supports any features for the given
layout.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_formats.c