Skip to content
Snippets Groups Projects
Commit ed3b3226 authored by Icecream95's avatar Icecream95 Committed by Dylan Baker
Browse files

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: 051d62cf ("panfrost: Add a pan_image_layout_init() helper")
Closes: mesa/mesa#6286
Part-of: <mesa/mesa!15989>
(cherry picked from commit f2670002)
parent 45e9ab29
No related branches found
No related tags found
Loading
......@@ -1612,7 +1612,7 @@
"description": "panfrost: Stop overallocating compressed textures",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"because_sha": "051d62cf041054bf0fdbd0ae5d2160d1b02e0203"
},
{
......
......@@ -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 */
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment