nir: Move the undef of nir_intrinsics.h macros to the .h.
authorEric Anholt <eric@anholt.net>
Sat, 6 Aug 2016 06:45:37 +0000 (23:45 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 19 Aug 2016 20:11:36 +0000 (13:11 -0700)
I wanted to include this from nir_builder as well, so it also needed the
undefs.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir.h
src/compiler/nir/nir_intrinsics.h

index 9ce5be2176d94f4011a123ad496e1c9ea6a93a01..e09cf3b810928f11a97693da17d3d9b0030a6e3c 100644 (file)
@@ -868,9 +868,6 @@ typedef enum {
    nir_num_intrinsics = nir_last_intrinsic + 1
 } nir_intrinsic_op;
 
-#undef INTRINSIC
-#undef LAST_INTRINSIC
-
 #define NIR_INTRINSIC_MAX_CONST_INDEX 3
 
 /** Represents an intrinsic
index 42c770f15942c1c5e796ab4c281d60135b40225a..d0f7f5db83376e684645e7276aeb4cdfb715bdee 100644 (file)
@@ -405,3 +405,6 @@ STORE(ssbo, 3, 1, WRMASK, xx, xx, 0)
 STORE(shared, 2, 2, BASE, WRMASK, xx, 0)
 
 LAST_INTRINSIC(store_shared)
+
+#undef INTRINSIC
+#undef LAST_INTRINSIC