From: Kenneth Graunke Date: Sun, 21 Jan 2018 07:04:02 +0000 (-0800) Subject: iris: lower io X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64f043570da6c2293c056a12a8d439a370241f9f;p=mesa.git iris: lower io --- diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c index 064b2b2a8ba..2eb74263957 100644 --- a/src/gallium/drivers/iris/iris_program.c +++ b/src/gallium/drivers/iris/iris_program.c @@ -63,6 +63,10 @@ iris_create_shader_state(struct pipe_context *ctx, return NULL; nir = brw_preprocess_nir(screen->compiler, nir); + + nir_assign_var_locations(&nir->uniforms, &nir->num_uniforms, + type_size_scalar_bytes); + nir_lower_io(nir, nir_var_uniform, type_size_scalar_bytes, 0); //NIR_PASS_V(nir, brw_nir_lower_uniforms, true); ish->program_id = get_new_program_id(screen);