mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 13:30:11 +01:00
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:
parent
15fb18063b
commit
2fdba5b914
1 changed files with 2 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue