turnip: Fix image size for 3D vkGetImageSubresourceLayout.
Fixes most subcases of dEQP-VK.image.subresource_layout.3d.* The remaining failures appear to be in snorm, which 2D also fails on (and the blob reports as not supported for this test). We don't currently have these tests in CI, but they'll appear with 1.2.4.0. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7467>
This commit is contained in:
parent
a0b42da0a2
commit
9f1cd99ba1
|
@ -744,10 +744,10 @@ tu_GetImageSubresourceLayout(VkDevice _device,
|
|||
|
||||
pLayout->offset =
|
||||
fdl_surface_offset(layout, pSubresource->mipLevel, pSubresource->arrayLayer);
|
||||
pLayout->size = slice->size0;
|
||||
pLayout->rowPitch = fdl_pitch(layout, pSubresource->mipLevel);
|
||||
pLayout->arrayPitch = fdl_layer_stride(layout, pSubresource->mipLevel);
|
||||
pLayout->depthPitch = slice->size0;
|
||||
pLayout->size = pLayout->depthPitch * layout->depth0;
|
||||
|
||||
if (fdl_ubwc_enabled(layout, pSubresource->mipLevel)) {
|
||||
/* UBWC starts at offset 0 */
|
||||
|
|
Loading…
Reference in New Issue