Mesa (master): nir/intrinsics: Include atomic_counter_ in the names used in macro invocations

Ian Romanick idr at kemper.freedesktop.org
Tue Oct 4 23:53:38 UTC 2016


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

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Wed Jun 29 17:46:17 2016 -0700

nir/intrinsics: Include atomic_counter_ in the names used in macro invocations

Otherwise grepping for where atomic_counter_inc and friends are defined
is a very frustrating experience.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
Acked-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/compiler/nir/nir_intrinsics.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/compiler/nir/nir_intrinsics.h b/src/compiler/nir/nir_intrinsics.h
index f24d894..1568c28 100644
--- a/src/compiler/nir/nir_intrinsics.h
+++ b/src/compiler/nir/nir_intrinsics.h
@@ -139,12 +139,12 @@ INTRINSIC(set_vertex_count, 1, ARR(1), false, 0, 0, 0, xx, xx, xx, 0)
  */
 
 #define ATOMIC(name, flags) \
-   INTRINSIC(atomic_counter_##name##_var, 0, ARR(0), true, 1, 1, 0, xx, xx, xx, flags) \
-   INTRINSIC(atomic_counter_##name, 1, ARR(1), true, 1, 0, 1, BASE, xx, xx, flags)
+   INTRINSIC(name##_var, 0, ARR(0), true, 1, 1, 0, xx, xx, xx, flags) \
+   INTRINSIC(name, 1, ARR(1), true, 1, 0, 1, BASE, xx, xx, flags)
 
-ATOMIC(inc, 0)
-ATOMIC(dec, 0)
-ATOMIC(read, NIR_INTRINSIC_CAN_ELIMINATE)
+ATOMIC(atomic_counter_inc, 0)
+ATOMIC(atomic_counter_dec, 0)
+ATOMIC(atomic_counter_read, NIR_INTRINSIC_CAN_ELIMINATE)
 
 /*
  * Image load, store and atomic intrinsics.




More information about the mesa-commit mailing list