From 02aaf589083a768d9d1db8500c3b4495ed98df29 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Tue, 20 Jun 2023 17:47:48 +0200 Subject: [PATCH] nv50/ir/nir: set numBarriers if we emit an OP_BAR Even though the field is called `numBarriers` we set it to 1 just like we do with TGSI. It's unknown on what's the proper behavior here is. But without this set the GPU will complain to us loudly, so this silences at least that. Fixes: a2d7a4f9788 ("nv50/ir: convert to scoped_barrier") Signed-off-by: Karol Herbst Reviewed-by: M Henning Part-of: --- src/nouveau/codegen/nv50_ir_from_nir.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nouveau/codegen/nv50_ir_from_nir.cpp b/src/nouveau/codegen/nv50_ir_from_nir.cpp index 97c8964..19a4fc8 100644 --- a/src/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/nouveau/codegen/nv50_ir_from_nir.cpp @@ -2279,6 +2279,7 @@ Converter::visit(nir_intrinsic_instr *insn) Instruction *bar = mkOp2(OP_BAR, TYPE_U32, NULL, mkImm(0), mkImm(0)); bar->fixed = 1; bar->subOp = NV50_IR_SUBOP_BAR_SYNC; + info_out->numBarriers = 1; } break; -- 2.7.4