Mesa (vulkan): spirv: Move to compiler/

Jason Ekstrand jekstrand at kemper.freedesktop.org
Thu Apr 14 22:13:43 UTC 2016


Module: Mesa
Branch: vulkan
Commit: c34be07230ef98d5021f0bdc88c3b0bc804ee2dd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c34be07230ef98d5021f0bdc88c3b0bc804ee2dd

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Apr 14 10:28:45 2016 -0700

spirv: Move to compiler/

While it does rely on NIR, it's not really part of the NIR core.  At the
moment, it still builds as part of libnir but that can be changed later if
desired.

---

 src/compiler/Makefile.sources                | 14 +++++++-------
 src/compiler/{nir => }/spirv/GLSL.std.450.h  |  0
 src/compiler/{nir => }/spirv/nir_spirv.h     |  0
 src/compiler/{nir => }/spirv/spirv.h         |  0
 src/compiler/{nir => }/spirv/spirv_to_nir.c  |  0
 src/compiler/{nir => }/spirv/vtn_alu.c       |  0
 src/compiler/{nir => }/spirv/vtn_cfg.c       |  0
 src/compiler/{nir => }/spirv/vtn_glsl450.c   |  0
 src/compiler/{nir => }/spirv/vtn_private.h   |  0
 src/compiler/{nir => }/spirv/vtn_variables.c |  0
 src/intel/vulkan/anv_pipeline.c              |  2 +-
 11 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/compiler/Makefile.sources b/src/compiler/Makefile.sources
index adc7a42..1973533 100644
--- a/src/compiler/Makefile.sources
+++ b/src/compiler/Makefile.sources
@@ -235,10 +235,10 @@ NIR_FILES = \
 	nir/nir_worklist.h
 
 SPIRV_FILES = \
-	nir/spirv/nir_spirv.h \
-	nir/spirv/spirv_to_nir.c \
-	nir/spirv/vtn_alu.c \
-	nir/spirv/vtn_cfg.c \
-	nir/spirv/vtn_glsl450.c \
-	nir/spirv/vtn_private.h \
-	nir/spirv/vtn_variables.c
+	spirv/nir_spirv.h \
+	spirv/spirv_to_nir.c \
+	spirv/vtn_alu.c \
+	spirv/vtn_cfg.c \
+	spirv/vtn_glsl450.c \
+	spirv/vtn_private.h \
+	spirv/vtn_variables.c
diff --git a/src/compiler/nir/spirv/GLSL.std.450.h b/src/compiler/spirv/GLSL.std.450.h
similarity index 100%
rename from src/compiler/nir/spirv/GLSL.std.450.h
rename to src/compiler/spirv/GLSL.std.450.h
diff --git a/src/compiler/nir/spirv/nir_spirv.h b/src/compiler/spirv/nir_spirv.h
similarity index 100%
rename from src/compiler/nir/spirv/nir_spirv.h
rename to src/compiler/spirv/nir_spirv.h
diff --git a/src/compiler/nir/spirv/spirv.h b/src/compiler/spirv/spirv.h
similarity index 100%
rename from src/compiler/nir/spirv/spirv.h
rename to src/compiler/spirv/spirv.h
diff --git a/src/compiler/nir/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
similarity index 100%
rename from src/compiler/nir/spirv/spirv_to_nir.c
rename to src/compiler/spirv/spirv_to_nir.c
diff --git a/src/compiler/nir/spirv/vtn_alu.c b/src/compiler/spirv/vtn_alu.c
similarity index 100%
rename from src/compiler/nir/spirv/vtn_alu.c
rename to src/compiler/spirv/vtn_alu.c
diff --git a/src/compiler/nir/spirv/vtn_cfg.c b/src/compiler/spirv/vtn_cfg.c
similarity index 100%
rename from src/compiler/nir/spirv/vtn_cfg.c
rename to src/compiler/spirv/vtn_cfg.c
diff --git a/src/compiler/nir/spirv/vtn_glsl450.c b/src/compiler/spirv/vtn_glsl450.c
similarity index 100%
rename from src/compiler/nir/spirv/vtn_glsl450.c
rename to src/compiler/spirv/vtn_glsl450.c
diff --git a/src/compiler/nir/spirv/vtn_private.h b/src/compiler/spirv/vtn_private.h
similarity index 100%
rename from src/compiler/nir/spirv/vtn_private.h
rename to src/compiler/spirv/vtn_private.h
diff --git a/src/compiler/nir/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c
similarity index 100%
rename from src/compiler/nir/spirv/vtn_variables.c
rename to src/compiler/spirv/vtn_variables.c
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index 52748a0..90732db 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -31,7 +31,7 @@
 #include "anv_private.h"
 #include "brw_nir.h"
 #include "anv_nir.h"
-#include "nir/spirv/nir_spirv.h"
+#include "spirv/nir_spirv.h"
 
 /* Needed for SWIZZLE macros */
 #include "program/prog_instruction.h"




More information about the mesa-commit mailing list