Module: Mesa
Branch: main
Commit: 73b639ec5ceb0696b8eb206322b4aca995bb34e1
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=73b639ec5ceb0696b8eb206322b4aca995bb34e1

Author: Yonggang Luo <[email protected]>
Date:   Mon Jun  5 04:20:38 2023 +0800

nir: #include "util/macros.h" for BITFIELD64_MASK in nir.c

There is no neeed #include "main/menums.h" in nir.c,
as it's belongs to gallium code

Signed-off-by: Yonggang Luo <[email protected]>
Reviewed-by: Faith Ekstrand <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24462>

---

 src/compiler/nir/nir.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c
index 9ceed7456ce..598821755a5 100644
--- a/src/compiler/nir/nir.c
+++ b/src/compiler/nir/nir.c
@@ -30,14 +30,13 @@
 #include <limits.h>
 #include <math.h>
 #include "util/half_float.h"
+#include "util/macros.h"
 #include "util/u_math.h"
 #include "util/u_qsort.h"
 #include "nir_builder.h"
 #include "nir_control_flow_private.h"
 #include "nir_worklist.h"
 
-#include "main/menums.h" /* BITFIELD64_MASK */
-
 #ifndef NDEBUG
 uint32_t nir_debug = 0;
 bool nir_debug_print_shader[MESA_SHADER_KERNEL + 1] = { 0 };

Reply via email to