diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c index 8e118b075e3..ab29036c10d 100644 --- a/src/compiler/nir/nir_lower_io.c +++ b/src/compiler/nir/nir_lower_io.c @@ -3129,7 +3129,8 @@ type_size_vec4(const struct glsl_type *type, bool bindless) void nir_lower_io_passes(nir_shader *nir) { - if (!nir->options->lower_io_variables) + if (!nir->options->lower_io_variables || + nir->info.stage == MESA_SHADER_COMPUTE) return; bool has_indirect_inputs =