From: Tapani Pälli Date: Thu, 20 Aug 2020 09:49:46 +0000 (+0300) Subject: anv: take depth in to account in anv_GetImageSubresourceLayout X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=89b56f19412e4794ec2ecfc1578fbfdb9e183bea 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 Reviewed-by: Lionel Landwerlin Part-of: --- diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 8fc5dd80f96..e56d3cfb034 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -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; }