zink: don't clamp 2D_ARRAY surfaces to 2D

another thing that used to be needed but now isn't

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13586>
(cherry picked from commit aa5e544644)
This commit is contained in:
Mike Blumenkrantz 2021-10-28 10:31:40 -04:00 committed by Dylan Baker
parent 764b302ec2
commit 9ff1f615c1
2 changed files with 1 additions and 4 deletions

View file

@ -58,7 +58,7 @@
"description": "zink: don't clamp 2D_ARRAY surfaces to 2D",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -88,9 +88,6 @@ zink_surface_clamp_viewtype(VkImageViewType viewType, unsigned first_layer, unsi
return VK_IMAGE_VIEW_TYPE_2D;
if (layerCount % 6 != 0 && (first_layer || layerCount != array_size))
return VK_IMAGE_VIEW_TYPE_2D_ARRAY;
} else if (viewType == VK_IMAGE_VIEW_TYPE_2D_ARRAY) {
if (first_layer == last_layer)
return VK_IMAGE_VIEW_TYPE_2D;
}
return viewType;
}