summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-05-28 21:28:36 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:06 -0800
commit201a4d923c15ccfaf4c9eeb866a72b9cc78b89bc (patch)
treea85cedc040d4ea8288b59015dee35fbe15a983e1 /src
parenta6dd9caf0d8bff7321a6acf8753fa63846c9f227 (diff)
iris: maybe slightly less boats uniforms
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_program.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c
index 4dd85b7af59..d1c4b88ca97 100644
--- a/src/gallium/drivers/iris/iris_program.c
+++ b/src/gallium/drivers/iris/iris_program.c
@@ -72,6 +72,9 @@ iris_create_shader_state(struct pipe_context *ctx,
type_size_scalar_bytes);
nir_lower_io(nir, nir_var_uniform, type_size_scalar_bytes, 0);
#endif
+ nir_foreach_variable(var, &nir->uniforms) {
+ var->data.driver_location *= 4;
+ }
nir_lower_io(nir, nir_var_uniform, type_size_vec4_bytes, 0);
ish->program_id = get_new_program_id(screen);