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 <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4976>
This commit is contained in:
Rob Clark 2020-05-09 09:42:14 -07:00 committed by Marge Bot
parent ad6e06621b
commit c46f46befe
1 changed files with 2 additions and 0 deletions

View 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: