summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan Marek <jonathan@marek.ca>2020-05-12 21:58:20 -0400
committerMarge Bot <eric+marge@anholt.net>2020-05-20 18:24:28 +0000
commite49748521ec9182e8d2eec823182cc463709123f (patch)
tree754970f64b229470baf1f9ea0265b27408215e69 /src
parentf6f8a19092027ab0248e216997a5529565ce2e12 (diff)
freedreno: reduce extra height alignment in a6xx layout
Signed-off-by: Jonathan Marek <jonathan@marek.ca> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4611>
Diffstat (limited to 'src')
-rw-r--r--src/freedreno/fdl/fd6_layout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/freedreno/fdl/fd6_layout.c b/src/freedreno/fdl/fd6_layout.c
index 137ba42650e..ea71da8918f 100644
--- a/src/freedreno/fdl/fd6_layout.c
+++ b/src/freedreno/fdl/fd6_layout.c
@@ -169,14 +169,14 @@ fdl6_layout(struct fdl_layout *layout,
nblocksy = align(nblocksy, ta->heightalign);
/* The blits used for mem<->gmem work at a granularity of
- * 32x32, which can cause faults due to over-fetch on the
+ * 16x4, which can cause faults due to over-fetch on the
* last level. The simple solution is to over-allocate a
* bit the last level to ensure any over-fetch is harmless.
* The pitch is already sufficiently aligned, but height
- * may not be:
+ * may not be. note this only matters if last level is linear
*/
if (level == mip_levels - 1)
- nblocksy = align(nblocksy, 32);
+ height = align(nblocksy, 4);
uint32_t nblocksx =
util_align_npot(util_format_get_nblocksx(format, u_minify(pitch0, level)),