r600g: use old shader disassembler by default
authorVadim Girlin <vadimgirlin@gmail.com>
Fri, 3 May 2013 08:01:20 +0000 (12:01 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Fri, 3 May 2013 12:53:41 +0000 (16:53 +0400)
commit4ca67dbf0cc4cd509c225c5feb5e45387739a48b
treed95c7c86da5a7419b2ffba4f5e6bed0882d58e0c
parentb4b3041132e5b73b263217b7c25ebec3f3d879ce
r600g: use old shader disassembler by default

New disassembler is not completely isolated yet from further processing
in r600g/sb that is not required for printing the dump, so it has higher
probability to fail in case of any unexpected features in the bytecode.

This patch adds "sbdisasm" flag for R600_DEBUG that allows to use new
disassembler in r600g/sb for shader dumps when shader optimization
is not enabled.

If shader optimization is enabled, new disassembler is used by default.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/r600/r600_asm.c
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_shader.c