r300: fix wpos/fog handling
authorMaciej Cencora <m.cencora@gmail.com>
Sun, 21 Mar 2010 10:34:19 +0000 (11:34 +0100)
committerMaciej Cencora <m.cencora@gmail.com>
Wed, 24 Mar 2010 19:07:44 +0000 (20:07 +0100)
commitbed7d88708eba69118fe3805f95b104194872f3a
tree41a56668f6e1ce96d0bc3229b6dc2ed473081e1b
parent70929f4505d5cb1b9848a02e8359e9f7a8ef598c
r300: fix wpos/fog handling

It may happen that the vertex attribute we were going to stuff
the wpos/fog attrs in was already written by vertex program.
In such cases we need to remove instruction accessing these
attributes, so they don't overwrite the wpos/fog related
instructions.

This fixes non-textured models in many wine games.
src/mesa/drivers/dri/r300/r300_vertprog.c