zink: block dmabuf fallback into optimal tiling

when modifiers are specified the frontend needs stride, and optimal
tiling cannot provide a stride

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31467>
This commit is contained in:
Mike Blumenkrantz 2024-10-01 12:58:58 -04:00 committed by Marge Bot
parent 15fb18063b
commit 2fdba5b914

View file

@ -649,12 +649,11 @@ retry:
while (!ici->usage) {
if (!first) {
switch (ici->tiling) {
/* modifiers cannot do fallbacks, as LINEAR modifier should be present for that case */
case VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT:
ici->tiling = VK_IMAGE_TILING_OPTIMAL;
modifiers_count = 0;
break;
case VK_IMAGE_TILING_OPTIMAL:
ici->tiling = VK_IMAGE_TILING_LINEAR;
modifiers_count = 0;
break;
case VK_IMAGE_TILING_LINEAR:
if (bind & PIPE_BIND_LINEAR) {