intel: Fix aux map alignments on 32-bit builds.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 22 Jan 2020 00:46:24 +0000 (16:46 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 02:16:50 +0000 (02:16 +0000)
commit8dc0540a171627cb502f76c75a29a43a86328a95
tree4b56160f3f3b9a4167575fe17d8bef9e8851e564
parent4413537c80b58978f61f468a5a36d1d75756d6b3
intel: Fix aux map alignments on 32-bit builds.

ALIGN() brilliantly uses uintptr_t, making it unsafe for use with 64-bit
GPU addresses in 32-bit builds of the driver.  Use align64() instead,
which uses uint64_t.

Fixes assertion failures when running any 32-bit program on Tigerlake.

Fixes: 2e6a7ced4db ("iris/gen12: Write GFX_AUX_TABLE base address register")
Fixes: 0d0290bb3f7 ("intel/common: Add surface to aux map translation table support")
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3507>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3507>
src/gallium/drivers/iris/iris_state.c
src/intel/common/gen_aux_map.c