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:
committed by
Marge Bot
parent
15fb18063b
commit
2fdba5b914
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user