nv50/ir: mark ATOM as having 3 arguments
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 25 Feb 2021 03:23:08 +0000 (22:23 -0500)
committerMarge Bot <eric+marge@anholt.net>
Sat, 1 May 2021 20:04:21 +0000 (20:04 +0000)
Otherwise the final argument doesn't get emitted for CAS in the nv50
emitter.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Pierre Moreau <dev@pmoreau.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10164>

src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp

index c55aa5f..ccb1453 100644 (file)
@@ -53,7 +53,7 @@ const uint8_t Target::operationSrcNr[] =
    1, 2, 1, 2, 0, 0,       // RDSV, WRSV, PIXLD, QUADOP, QUADON, QUADPOP
    2, 3, 2, 1, 1, 2, 3,    // POPCNT, INSBF, EXTBF, BFIND, BREV, BMSK, PERMT
    2,                      // SGXT
-   2, 2,                   // ATOM, BAR
+   3, 2,                   // ATOM, BAR
    2, 2, 2, 2, 3, 2,       // VADD, VAVG, VMIN, VMAX, VSAD, VSET,
    2, 2, 2, 1,             // VSHR, VSHL, VSEL, CCTL
    3,                      // SHFL