From: Kenneth Graunke Date: Tue, 29 May 2018 04:28:36 +0000 (-0700) Subject: iris: maybe slightly less boats uniforms X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=201a4d923c15ccfaf4c9eeb866a72b9cc78b89bc;p=mesa.git iris: maybe slightly less boats uniforms --- 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);