summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_screen.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2020-12-21 16:22:03 -0800
committerEric Anholt <eric@anholt.net>2021-01-05 15:05:48 -0800
commit03c60762f571b8e954dec9614b6efba92ed5d401 (patch)
tree5f4ed85ca4dcac1e010f1c0657965dcc4e62d9de /src/gallium/drivers/softpipe/sp_screen.c
parent9789417055f3aa8ba9f3417cabf58c526521b49f (diff)
gallium/ntt: Fix load_ubo_vec4 buffer index setup.
I had a funny +1 in nir_to_tgsi's load_ubo lowering on the buffer index, because I hadn't set lower_uniform_to_ubo for softpipe. This removes that weirdness in favor of just using lower_uniform_to_ubo, regardless of driver preference (which matters if a NIR-native driver had it set, and then the gallium draw module triggered the non-LLVM TGSI fallback path that hit NTT). Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8196>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_screen.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
index 010c8e27f8c..ed826e4fc60 100644
--- a/src/gallium/drivers/softpipe/sp_screen.c
+++ b/src/gallium/drivers/softpipe/sp_screen.c
@@ -83,6 +83,7 @@ static const nir_shader_compiler_options sp_compiler_options = {
.lower_fmod = true,
.lower_rotate = true,
.lower_sub = true,
+ .lower_uniforms_to_ubo = true,
.lower_vector_cmp = true,
.use_interpolated_input_intrinsics = true,
};