mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
panfrost: Stop overallocating compressed textures
The line stride uses the number of bytes in the entire block, so both
the width and height need to be reduced for compressed textures so
that the surface stride is calculated correctly.
Fixes: 051d62cf04 ("panfrost: Add a pan_image_layout_init() helper")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6286
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15989>
This commit is contained in:
parent
f68e579044
commit
f267000240
1 changed files with 1 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ pan_image_layout_init(const struct panfrost_device *dev,
|
|||
|
||||
if (should_align) {
|
||||
effective_width = ALIGN_POT(effective_width, tile_w) >> tile_shift;
|
||||
effective_height = ALIGN_POT(effective_height, tile_h);
|
||||
effective_height = ALIGN_POT(effective_height, tile_h) >> tile_shift;
|
||||
|
||||
/* We don't need to align depth */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue