ir3, tu: Add compiler flag for robust UBO behavior

Graphics / Mesa 3D Graphics Library / Mesa - Connor Abbott [gmail.com] - 15 April 2021 14:05 UTC

This needs to be part of the compiler because it's the only piece that we always have access to in all the places ir3_optimize_loop() is called, and it's only enabled for the whole Vulkan device. Right now it's just used for constraining vectorization, but the next commit adds another use.

Part-of:

c68ea960a78 ir3, tu: Add compiler flag for robust UBO behavior
src/freedreno/computerator/a6xx.c | 2 +-
src/freedreno/ir3/ir3_compiler.c | 3 ++-
src/freedreno/ir3/ir3_compiler.h | 11 ++++++++++-
src/freedreno/ir3/ir3_disk_cache.c | 4 +++-
src/freedreno/ir3/ir3_nir.c | 14 +++++++-------
src/freedreno/ir3/ir3_nir.h | 2 +-
src/freedreno/ir3/tests/delay.c | 2 +-
src/freedreno/ir3/tests/disasm.c | 2 +-
src/freedreno/vulkan/tu_device.c | 9 ++++++++-
src/freedreno/vulkan/tu_shader.c | 2 +-
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c | 2 +-
src/gallium/drivers/freedreno/ir3/ir3_gallium.c | 2 +-
12 files changed, 37 insertions(+), 18 deletions(-)

Upstream: cgit.freedesktop.org


  • Share