From 201a4d923c15ccfaf4c9eeb866a72b9cc78b89bc Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 28 May 2018 21:28:36 -0700 Subject: [PATCH] iris: maybe slightly less boats uniforms --- src/gallium/drivers/iris/iris_program.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.30.2