iris: maybe slightly less boats uniforms
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 29 May 2018 04:28:36 +0000 (21:28 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:06 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_program.c

index 4dd85b7af59d1bd93ecb010f1482af810d1a740e..d1c4b88ca97167c566f3de9a590e36e99fc70ef5 100644 (file)
@@ -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);