From 8534f49bf930dc5911fc0d5a23c2c397d63e2489 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Mon, 20 Jul 2020 21:40:16 +0200 Subject: [PATCH] etnaviv: explicitly set nir_variable_mode No functional changes - fixes the following assert: nir_lower_io_impl: Assertion `!(modes & ~supported_modes)' failed. Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach Part-of: --- src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c index 44e6c5ec9d5..ebaeb7bb5c8 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c +++ b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c @@ -1088,7 +1088,7 @@ etna_compile_shader_nir(struct etna_shader_variant *v) assert(sf->num_reg == count); } - NIR_PASS_V(s, nir_lower_io, ~nir_var_shader_out, etna_glsl_type_size, + NIR_PASS_V(s, nir_lower_io, nir_var_shader_in | nir_var_uniform, etna_glsl_type_size, (nir_lower_io_options)0); NIR_PASS_V(s, nir_lower_regs_to_ssa); -- 2.30.2