From: Rob Clark Date: Sat, 9 May 2020 16:42:14 +0000 (-0700) Subject: freedreno/gmem: relax alignment on a6xx X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c46f46befe67f2e64f1492e5b46974e277ec6ac7;p=mesa.git 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 Part-of: --- 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: