mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
anv: take depth in to account in anv_GetImageSubresourceLayout
Fixes dEQP-VK.image.subresource_layout.3d* tests on gen9. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6400>
This commit is contained in:
parent
3dd1a81aa0
commit
89b56f1941
1 changed files with 2 additions and 1 deletions
|
|
@ -1133,7 +1133,8 @@ void anv_GetImageSubresourceLayout(
|
|||
&offset_B, NULL, NULL);
|
||||
layout->offset += offset_B;
|
||||
layout->size = layout->rowPitch * anv_minify(image->extent.height,
|
||||
subresource->mipLevel);
|
||||
subresource->mipLevel) *
|
||||
image->extent.depth;
|
||||
} else {
|
||||
layout->size = surface->isl.size_B;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue