Mesa (master): nv50/ir: mark ATOM as having 3 arguments

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat May 1 20:13:55 UTC 2021


Module: Mesa
Branch: master
Commit: 1cf864ef9e151c846f7bcf0b9592d4203b22ddff
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1cf864ef9e151c846f7bcf0b9592d4203b22ddff

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Wed Feb 24 22:23:08 2021 -0500

nv50/ir: mark ATOM as having 3 arguments

Otherwise the final argument doesn't get emitted for CAS in the nv50
emitter.

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

---

 src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp
index c55aa5f325a..ccb14535b55 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp
@@ -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



More information about the mesa-commit mailing list