r300/compiler: Fix incorrect presubtract conversion
authorTom Stellard <tstellar@gmail.com>
Sat, 16 Apr 2011 19:39:09 +0000 (12:39 -0700)
committerTom Stellard <tstellar@gmail.com>
Sat, 16 Apr 2011 20:55:54 +0000 (13:55 -0700)
commit0fa81d6d05b12db825be31533d9a485625ae35e2
treec848a95b894d14a99228bdc377f64c13bf396763
parentd5a5893adc395158e1dc77dacd417f4eb2696237
r300/compiler: Fix incorrect presubtract conversion

ADD instructions with constant swizzles can't be converted to
presubtract operations.

NOTE: This is a candidate for the 7.9 and 7.10 branches.
src/mesa/drivers/dri/r300/compiler/radeon_optimize.c