nir: Fix sources for image atomic fadd
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 26 May 2020 20:58:56 +0000 (15:58 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 26 May 2020 23:24:45 +0000 (23:24 +0000)
Somehow we ended up with an extra scalar source up-front.  It doesn't
look like any drivers use this opcode yet so no real harm has been done
by it being wrong.

Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5218>

src/compiler/nir/nir_intrinsics.py

index 1f4005877b348f65d0f2b5190d156044a9334839..26f421cfb9503e6b8f78b5a10e995746b38f18a7 100644 (file)
@@ -402,7 +402,7 @@ image("atomic_or",   src_comp=[4, 1, 1], dest_comp=1)
 image("atomic_xor",  src_comp=[4, 1, 1], dest_comp=1)
 image("atomic_exchange",  src_comp=[4, 1, 1], dest_comp=1)
 image("atomic_comp_swap", src_comp=[4, 1, 1, 1], dest_comp=1)
-image("atomic_fadd",  src_comp=[1, 4, 1, 1], dest_comp=1)
+image("atomic_fadd",  src_comp=[4, 1, 1], dest_comp=1)
 image("size",    dest_comp=0, flags=[CAN_ELIMINATE, CAN_REORDER])
 image("samples", dest_comp=1, flags=[CAN_ELIMINATE, CAN_REORDER])
 image("atomic_inc_wrap",  src_comp=[4, 1, 1], dest_comp=1)