nouveau: add a nouveau_compiler binary to compile TGSI into shader ISA
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).
Signed-off-by Ilia Mirkin <[email protected]>
---
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
@@ -0,0 +1 @@ +nouveau_compiler
src/gallium/drivers/nouveau/Makefile.am +12 -0
@@ -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