freedreno/a6xx: Fix typo in height alignment calculation in a6xx layout

Fixes KHR-GL31.texture_size_promotion.functional

Fixes: e49748521e
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7792>
(cherry picked from commit a569ffeb83)
This commit is contained in:
Danylo Piliaiev 2020-11-26 14:05:59 +02:00 committed by Dylan Baker
parent ec53c72f58
commit 099633b6af
2 changed files with 2 additions and 2 deletions

View file

@ -1885,7 +1885,7 @@
"description": "freedreno/a6xx: Fix typo in height alignment calculation in a6xx layout",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "e49748521ec9182e8d2eec823182cc463709123f"
},

View file

@ -208,7 +208,7 @@ fdl6_layout(struct fdl_layout *layout,
* may not be. note this only matters if last level is linear
*/
if (level == mip_levels - 1)
height = align(nblocksy, 4);
nblocksy = align(nblocksy, 4);
slice->offset = offset + layout->size;