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>
This commit is contained in:

committed by
Marge Bot

parent
4815ae51d7
commit
c30824adc0
@@ -608,6 +608,9 @@ system_value("global_invocation_index", 1, bit_sizes=[32, 64])
|
||||
system_value("work_dim", 1)
|
||||
system_value("line_width", 1)
|
||||
system_value("aa_line_width", 1)
|
||||
# BASE=0 for global/shader, BASE=1 for local/function
|
||||
system_value("scratch_base_ptr", 0, bit_sizes=[32,64], indices=[BASE])
|
||||
|
||||
# Driver-specific viewport scale/offset parameters.
|
||||
#
|
||||
# VC4 and V3D need to emit a scaled version of the position in the vertex
|
||||
|
Reference in New Issue
Block a user