r300g/compiler: Fix bug in OMOD folding
authorTom Stellard <thomas.stellard@amd.com>
Sun, 10 Feb 2013 05:15:12 +0000 (00:15 -0500)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 22 Feb 2013 03:07:28 +0000 (22:07 -0500)
commit10bcc843f8898c2466b610d08edc27516e10cc51
tree921ed89301af2f0fae762652f43c46765fc322d0
parent5e1321ddf4dacb212ed3215f2b9beead630353a1
r300g/compiler: Fix bug in OMOD folding

The OMOD value was only being folded to one instruction in cases where
the MUL instruction was reading a value written by more than one
instruction.

NOTE: This is a candidate for the stable branches.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/gallium/drivers/r300/Makefile.am
src/gallium/drivers/r300/compiler/radeon_optimize.c
src/gallium/drivers/r300/compiler/tests/radeon_compiler_optimize_tests.c [new file with mode: 0644]