util: Include bitscan.h directly
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 26 Jul 2017 20:32:01 +0000 (13:32 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 29 Mar 2018 21:09:30 +0000 (14:09 -0700)
Previously bitset.h would include u_math.h to get bitscan.h.  u_math.h
lives in src/gallium/auxiliary/util while both bitset.h and bitscan.h
live in src/util.  Having the one file directly include another file
that lives in the same directory makes much more sense.

As a side-effect, several files need to directly include standard header
files that were previously indirectly included.

v2: Fix build break in src/amd/common/ac_nir_to_llvm.c.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/amd/common/ac_nir_to_llvm.c
src/compiler/nir/nir.c
src/compiler/spirv/vtn_alu.c
src/compiler/spirv/vtn_glsl450.c
src/util/bitset.h

index 7efbe4b31aa07030cd65106b63493eb19bcc5150..053c19808f58006fbea5dc865bdc1e47bf40747e 100644 (file)
@@ -28,6 +28,7 @@
 #include "sid.h"
 #include "nir/nir.h"
 #include "util/bitscan.h"
+#include "util/u_math.h"
 #include "ac_shader_abi.h"
 #include "ac_shader_util.h"
 
index a97b119bf72c7d85b34d999a697acd349aa470fa..3fb16e6ca5fa9782d7b0f589dc0c58d7a3a8183b 100644 (file)
@@ -28,6 +28,7 @@
 #include "nir.h"
 #include "nir_control_flow_private.h"
 #include "util/half_float.h"
+#include <limits.h>
 #include <assert.h>
 #include <math.h>
 
index 01be397e271f79054d084d0fe9c04eaca3e5ac83..fc378495b8127aa11437594458ebf27db89325b1 100644 (file)
@@ -21,6 +21,7 @@
  * IN THE SOFTWARE.
  */
 
+#include <math.h>
 #include "vtn_private.h"
 
 /*
index 7d32914d51615a73839f7860637c7745f49e484f..eb0b90f7976b649b01b655dc18ac24b2c704a4e5 100644 (file)
@@ -25,6 +25,7 @@
  *
  */
 
+#include <math.h>
 #include "vtn_private.h"
 #include "GLSL.std.450.h"
 
index b4c21520238ef4c65657b0c419c28d54ff968367..75e29a9a519bf2bf12bea8e16b93549b66947809 100644 (file)
@@ -31,7 +31,7 @@
 #ifndef BITSET_H
 #define BITSET_H
 
-#include "util/u_math.h"
+#include "util/bitscan.h"
 
 /****************************************************************************
  * generic bitset implementation