iris: lower io
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 21 Jan 2018 07:04:02 +0000 (23:04 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:05 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_program.c

index 064b2b2a8ba6ce4419426f5256ef4eec331374f5..2eb74263957c05eb43a8199dfe9e41b77c7d198f 100644 (file)
@@ -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);