panvk: Report row_stride in GetImageSubresourceLayout
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 27 Apr 2022 15:20:54 +0000 (11:20 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 3 May 2022 14:20:15 +0000 (14:20 +0000)
...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 <alyssa@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16201>

src/panfrost/vulkan/panvk_image.c

index c0ef0d4..7c97b9d 100644 (file)
@@ -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;
 }