summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2015-08-12 15:14:35 -0700
committerKenneth Graunke <[email protected]>2015-10-01 10:58:30 -0700
commit39a1d36a67974dd9fc3c0d834d6a117cdfed8f33 (patch)
tree8a552754b8dcf9f2c3accf4ef49b7be6307cc085 /src/mesa
parent1c6689bf03fe500cc1bc55d7c2039c0aa3ae095c (diff)
nir: Allow nir_lower_io() to only lower one type of variable.
We may want to use different type_size functions for (e.g.) inputs vs. uniforms. Passing in -1 for mode ignores this, handling all modes as before. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_nir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
index 1d4f6ab2ccd..40a83268979 100644
--- a/src/mesa/drivers/dri/i965/brw_nir.c
+++ b/src/mesa/drivers/dri/i965/brw_nir.c
@@ -128,7 +128,7 @@ brw_create_nir(struct brw_context *brw,
type_size_scalar);
nir_assign_var_locations(&nir->inputs, &nir->num_inputs, type_size_scalar);
nir_assign_var_locations(&nir->outputs, &nir->num_outputs, type_size_scalar);
- nir_lower_io(nir, type_size_scalar);
+ nir_lower_io(nir, -1, type_size_scalar);
} else {
nir_assign_var_locations(&nir->uniforms,
&nir->num_uniforms,
@@ -139,7 +139,7 @@ brw_create_nir(struct brw_context *brw,
foreach_list_typed(nir_variable, var, node, &nir->outputs)
var->data.driver_location = var->data.location;
- nir_lower_io(nir, type_size_vec4);
+ nir_lower_io(nir, -1, type_size_vec4);
}
nir_validate_shader(nir);