r600/sfn: Shorten array elements live range
authorGert Wollny <gert.wollny@collabora.com>
Thu, 6 Jul 2023 19:29:53 +0000 (21:29 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 7 Jul 2023 06:48:09 +0000 (06:48 +0000)
commit8f3e298a588b1027c8d7ce30d2eb457e507eb8bb
tree04d0dd8f863e7ead7bf0d1998253807885bbfe42
parent409486aa5749534494c6d895d2ed1d02aec05d93
r600/sfn: Shorten array elements live range

If an array is accessed indirectly, add a buffer live range of
one cycle before (for write) or after (for read), instead of pinning
the array from the start.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24036>
src/gallium/drivers/r600/sfn/sfn_liverangeevaluator.cpp
src/gallium/drivers/r600/sfn/sfn_virtualvalues.cpp
src/gallium/drivers/r600/sfn/tests/sfn_liverange_test.cpp
src/gallium/drivers/r600/sfn/tests/sfn_test_shaders.cpp