aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_nir.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-10-19 11:57:51 -0400
committerRob Clark <[email protected]>2015-11-19 20:03:32 -0500
commit006e4f070f08ff1e1731863940bc51de9e97b865 (patch)
treeb1b59e8001998e2b6dc5924e2b310bcf1a171304 /src/mesa/drivers/dri/i965/brw_nir.c
parent769b3ab6c5111f50502f9df0e8930c8d13f475c7 (diff)
nir: add nir_var_all enum
Otherwise, passing -1 gets you: error: invalid conversion from 'int' to 'nir_variable_mode' [-fpermissive] Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_nir.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_nir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
index 7896f29803b..bd91254f5bf 100644
--- a/src/mesa/drivers/dri/i965/brw_nir.c
+++ b/src/mesa/drivers/dri/i965/brw_nir.c
@@ -290,7 +290,7 @@ brw_create_nir(struct brw_context *brw,
nir_assign_var_locations(&nir->uniforms,
&nir->num_uniforms,
is_scalar ? type_size_scalar : type_size_vec4);
- OPT_V(nir_lower_io, -1, is_scalar ? type_size_scalar : type_size_vec4);
+ OPT_V(nir_lower_io, nir_var_all, is_scalar ? type_size_scalar : type_size_vec4);
OPT(nir_remove_dead_variables);