From 89b56f19412e4794ec2ecfc1578fbfdb9e183bea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Thu, 20 Aug 2020 12:49:46 +0300 Subject: [PATCH] anv: take depth in to account in anv_GetImageSubresourceLayout MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes dEQP-VK.image.subresource_layout.3d* tests on gen9. Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.30.2