diff options
author | Rob Clark <[email protected]> | 2014-10-24 17:05:49 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-10-25 09:08:15 -0400 |
commit | d6252d0f633292b01c3964d0e3da12f759bec9c5 (patch) | |
tree | 805418ccdf5b17a044d32cd3fe8d6ffa484c5f33 /src/gallium/drivers/freedreno/ir3/disasm-a3xx.c | |
parent | 762c68b8796bea8a277c883b94f7184a8307f274 (diff) |
freedreno/ir3: standalone compiler updates for ir3test
In order to test compiler changes more easily, spit out the assembled
shader with some header information so that we can know about
inputs/outputs more easily.
See: git://people.freedesktop.org/~robclark/ir3test
In ir3test we have a big collection of tgsi shaders and reference
ir3_compiler outputs. When making compiler changes, regenerate the
compiler outputs and feed to ir3test to compare the new vs reference
shader.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3/disasm-a3xx.c')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/disasm-a3xx.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/disasm-a3xx.c b/src/gallium/drivers/freedreno/ir3/disasm-a3xx.c index 8c3704bf658..602be6508f3 100644 --- a/src/gallium/drivers/freedreno/ir3/disasm-a3xx.c +++ b/src/gallium/drivers/freedreno/ir3/disasm-a3xx.c @@ -749,16 +749,8 @@ static void print_instr(uint32_t *dwords, int level, int n) uint32_t opc = instr_opc(instr); const char *name; - printf("%s%04d[%08xx_%08xx] ", levels[level], n, dwords[1], dwords[0]); - -#if 0 - /* print unknown bits: */ - if (debug & PRINT_RAW) - printf("[%08xx_%08xx] ", dwords[1] & 0x001ff800, dwords[0] & 0x00000000); - if (debug & PRINT_VERBOSE) - printf("%d,%02d ", instr->opc_cat, opc); -#endif + printf("%s%04d[%08xx_%08xx] ", levels[level], n, dwords[1], dwords[0]); /* NOTE: order flags are printed is a bit fugly.. but for now I * try to match the order in llvm-a3xx disassembler for easy |