aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2020-05-09 09:42:14 -0700
committerMarge Bot <[email protected]>2020-05-12 18:16:48 +0000
commitc46f46befe67f2e64f1492e5b46974e277ec6ac7 (patch)
tree91ef47e979f7fb5a54f797c7a927511634bb847c /src
parentad6e06621b15908d5f3f4c63ce4d84612e5a761c (diff)
freedreno/gmem: relax alignment on a6xx
The blob only uses single page alignment, and empirically that appears to work just fine. Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4976>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_gmem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_gmem.c b/src/gallium/drivers/freedreno/freedreno_gmem.c
index 5bf809e652d..52c68309843 100644
--- a/src/gallium/drivers/freedreno/freedreno_gmem.c
+++ b/src/gallium/drivers/freedreno/freedreno_gmem.c
@@ -461,6 +461,8 @@ gmem_key_init(struct fd_batch *batch, bool assume_zs, bool no_scis_opt)
* but the fast clear path requires an alignment of 32K
*/
key->gmem_page_align = 8;
+ } else if (is_a6xx(screen)) {
+ key->gmem_page_align = 1;
} else {
// TODO re-check this across gens.. maybe it should only
// be a single page in some cases: