mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 23:40:33 +01:00
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:
parent
a7fdedd247
commit
a741bd5db1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue