summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-01-20 23:04:02 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:05 -0800
commit64f043570da6c2293c056a12a8d439a370241f9f (patch)
treeb54cc40d88fac8fe714de6d1085c07a33f7d6cec /src
parent695bd55d1a469938c966d788a52d77a0e5080182 (diff)
iris: lower io
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_program.c4
1 files changed, 4 insertions, 0 deletions
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);