When the client requests a tightly packet copy, we should take
the stride from the size of the region to copy, not from the size
of the image (which can be larger).
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
/* Store TLB to buffer */
uint32_t width, height;
if (region->bufferRowLength == 0)
- width = image->extent.width;
+ width = region->imageExtent.width;
else
width = region->bufferRowLength;
if (region->bufferImageHeight == 0)
- height = image->extent.height;
+ height = region->imageExtent.height;
else
height = region->bufferImageHeight;