Skip to contentSkip to conversation

nouveau: add a nouveau_compiler binary to compile TGSI into shader ISA

PATCH New Ilia Mirkin 1 participant 1 message Feb 21, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nouveau: add a nouveau_compiler binary to compile TGSI into shader ISA

This makes it easy to compare output between different cards, especially for ones that you don't have (and/or not in the current machine).

---

This currently only works for nv50+, but it'd probably be possible to split the code paths and introduce nv30/40 support.

 src/gallium/drivers/nouveau/.gitignore         |   1 +
 src/gallium/drivers/nouveau/Makefile.am        |  12 +++
 src/gallium/drivers/nouveau/nouveau_compiler.c | 133 +++++++++++++++++++++++++
 3 files changed, 146 insertions(+)
 create mode 100644 src/gallium/drivers/nouveau/.gitignore
 create mode 100644 src/gallium/drivers/nouveau/nouveau_compiler.c
src/gallium/drivers/nouveau/.gitignore new file +1 -0
new file mode 100644
index 0000000..829f951
@@ -0,0 +1 @@
+nouveau_compiler
src/gallium/drivers/nouveau/Makefile.am +12 -0
index 7c05223..ac4f9bb 100644
@@ -39,3 +39,15 @@ libnouveau_la_SOURCES = \
 	$(NV50_C_SOURCES) \
 	$(NVC0_CODEGEN_SOURCES) \
 	$(NVC0_C_SOURCES)
+
+noinst_PROGRAMS = nouveau_compiler
+
+nouveau_compiler_SOURCES = \
+	nouveau_compiler.c
+
+nouveau_compiler_LDADD = \
+	libnouveau.la \
+	../../auxiliary/libgallium.la \
+	-lstdc++ \
+	-lm \
+	-ldl
src/gallium/drivers/nouveau/nouveau_compiler.c new file +133 -0

133 lines not on this page · raw message

Signature · 1 line
1.8.3.2