nir/lower_io: Add support for global scratch addressing
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 14 Jul 2020 18:32:19 +0000 (13:32 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jul 2020 23:43:35 +0000 (23:43 +0000)
commitc30824adc07e45e43899b53325049bb006bf8ed5
treee7f4dbba1cad6b252c26aa72ffc18982a3601a10
parent4815ae51d72837b174e44acf70e41e464c2d1286
nir/lower_io: Add support for global scratch addressing

This provides an alternate lowering for scratch in which it uses global
reads/writes and bases scratch addresses on a base pointer.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5927>
src/compiler/nir/nir_intrinsics.py
src/compiler/nir/nir_lower_io.c