From a741bd5db1376b7a354a3472f5b15078cdfced77 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 27 Apr 2022 11:20:54 -0400 Subject: [PATCH] panvk: Report row_stride in GetImageSubresourceLayout ...Rather than line_stride. For linear images, these are equivalent. For nonlinear images, rowPitch is implementation-defined. So this isn't strictly a bug fix, but it gets rid of the nonsense nonlinear line_stride. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/vulkan/panvk_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/vulkan/panvk_image.c b/src/panfrost/vulkan/panvk_image.c index c0ef0d4..7c97b9d 100644 --- a/src/panfrost/vulkan/panvk_image.c +++ b/src/panfrost/vulkan/panvk_image.c @@ -247,7 +247,7 @@ panvk_GetImageSubresourceLayout(VkDevice _device, (pSubresource->arrayLayer * image->pimage.layout.array_stride); pLayout->size = slice_layout->size; - pLayout->rowPitch = slice_layout->line_stride; + pLayout->rowPitch = slice_layout->row_stride; pLayout->arrayPitch = image->pimage.layout.array_stride; pLayout->depthPitch = slice_layout->surface_stride; } -- 2.7.4