freedreno/gmem: relax alignment on a6xx
authorRob Clark <robdclark@chromium.org>
Sat, 9 May 2020 16:42:14 +0000 (09:42 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 12 May 2020 18:16:48 +0000 (18:16 +0000)
The blob only uses single page alignment, and empirically that appears
to work just fine.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4976>

src/gallium/drivers/freedreno/freedreno_gmem.c

index 5bf809e652d8a9df4e16ba336c19f770364a172a..52c6830984387de6a7d314bce68bc029604c446a 100644 (file)
@@ -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: