nv50/ir/nir: set numBarriers if we emit an OP_BAR
authorKarol Herbst <git@karolherbst.de>
Tue, 20 Jun 2023 15:47:48 +0000 (17:47 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sat, 24 Jun 2023 02:12:14 +0000 (02:12 +0000)
commit02aaf589083a768d9d1db8500c3b4495ed98df29
tree1b5541c3f7ba6a4443647b2ef8109a3a0c56ecd8
parent69c452781b32c1e4138c9454ce110e561e7de019
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 <git@karolherbst.de>
Reviewed-by: M Henning <drawoc@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23749>
src/nouveau/codegen/nv50_ir_from_nir.cpp