From a1106fd8b83e420cb0643d46e90cc54310b9d5ad Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 17 May 2023 11:43:04 +1000 Subject: [PATCH] gallivm/nir: call task shader lowering. Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/auxiliary/gallivm/lp_bld_nir.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir.c b/src/gallium/auxiliary/gallivm/lp_bld_nir.c index 2f4ab4cf9e8..9321a136796 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_nir.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_nir.c @@ -2793,6 +2793,11 @@ lp_build_opt_nir(struct nir_shader *nir) NIR_PASS_V(nir, nir_lower_tex, &lower_tex_options); NIR_PASS_V(nir, nir_lower_frexp); + if (nir->info.stage == MESA_SHADER_TASK) { + nir_lower_task_shader_options ts_opts = { 0 }; + NIR_PASS_V(nir, nir_lower_task_shader, ts_opts); + } + NIR_PASS_V(nir, nir_lower_flrp, 16|32|64, true); NIR_PASS_V(nir, nir_lower_fp16_casts, nir_lower_fp16_all); do {