From: Marek Olšák Date: Tue, 28 Feb 2023 20:12:21 +0000 (-0500) Subject: nir: skip nir_lower_io_passes for compute shaders X-Git-Tag: upstream/23.3.3~9778 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45d41bd0430310ef0d93c47be8ecba618e142f86;p=platform%2Fupstream%2Fmesa.git nir: skip nir_lower_io_passes for compute shaders Reviewed-by: Qiang Yu Reviewed-by: Timur Kristóf Part-of: --- diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c index 8e118b0..ab29036 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 =