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 <alyssa@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16201>
This commit is contained in:
committed by
Marge Bot
parent
a7fdedd247
commit
a741bd5db1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user