freedreno/gmemtool: make GMEM alignment per-gen
authorRob Clark <robdclark@chromium.org>
Sat, 23 May 2020 18:50:14 +0000 (11:50 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 26 May 2020 19:29:34 +0000 (19:29 +0000)
commitb20663c5ba9523d24edfb6f1ce42561e36607f4a
treedc2fe3bdc79fe2ec710f8baca2aaa3af25c9d9c6
parentfec8288081261ad902732f64ec5603eb96cd804a
freedreno/gmemtool: make GMEM alignment per-gen

`gmem_page_align` is generation specific (with the exception of a2xx
which has a different value for fast-clear).  So we should override the
value from the captured gmem_key according to the gpu we are emulating
for the purposes of calculating gmem config.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5189>
src/gallium/drivers/freedreno/gmemtool.c