r300/compiler: Add remove dead sources pass
authorTom Stellard <tstellar@gmail.com>
Sat, 26 Mar 2011 00:05:53 +0000 (17:05 -0700)
committerTom Stellard <tstellar@gmail.com>
Sat, 30 Apr 2011 18:00:15 +0000 (11:00 -0700)
commit6a6068e5e110f9902fbf368bbff2a728657e81c6
tree147e2f2f515abf7a7e49a597f8c283041b99d781
parentbd661a933b18fccd7102d05932774ee61a90ec9e
r300/compiler: Add remove dead sources pass

The instruction scheduler will sometimes leave orphaned sources when
converting instructions from RGB to Alpha.  If one of these orphaned
sources has an index greater than the maximum temporary register index,
then the compiler will incorrectly report "Too many hardware temporaries
used".  The dead sources pass cleans up these orphaned sources.
src/mesa/drivers/dri/r300/compiler/Makefile
src/mesa/drivers/dri/r300/compiler/SConscript
src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c
src/mesa/drivers/dri/r300/compiler/radeon_pair_dead_sources.c [new file with mode: 0644]
src/mesa/drivers/dri/r300/compiler/radeon_program_pair.h