summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanylo Piliaiev <dpiliaiev@igalia.com>2020-11-26 14:05:59 +0200
committerDylan Baker <dylan.c.baker@intel.com>2020-12-01 09:12:36 -0800
commit1891d300310dc3385a365967057df433117f3b7f (patch)
tree20fb1fcceb788bce7b0de3db150284833286aa74
parentbf76f2b21c18c1e4a5caf9d5b3ed760da696c436 (diff)
freedreno/a6xx: Fix typo in height alignment calculation in a6xx layout
Fixes KHR-GL31.texture_size_promotion.functional Fixes: e49748521ec9182e8d2eec823182cc463709123f Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7792> (cherry picked from commit a569ffeb83daaa3f3c179e0d315a5079334835f8)
-rw-r--r--.pick_status.json2
-rw-r--r--src/freedreno/fdl/fd6_layout.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/.pick_status.json b/.pick_status.json
index b10cdf3ba7a..b762dbcef96 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -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"
},
diff --git a/src/freedreno/fdl/fd6_layout.c b/src/freedreno/fdl/fd6_layout.c
index 7da7c0ec000..f6a0a984bce 100644
--- a/src/freedreno/fdl/fd6_layout.c
+++ b/src/freedreno/fdl/fd6_layout.c
@@ -211,7 +211,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;