i965: Fix gl_FrontFacing emit on pre-gen6.
authorEric Anholt <eric@anholt.net>
Wed, 20 Oct 2010 22:21:53 +0000 (15:21 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 21 Oct 2010 22:20:01 +0000 (15:20 -0700)
commit7a3f113e79f983222ecc95c33655a8c9354fcfad
tree44c5c0fd93dde3018fa6d8f9241ea5e0636484bf
parent5ac6c4ecfe77bf7e02ae61981b2c8b1fe73027cd
i965: Fix gl_FrontFacing emit on pre-gen6.

It's amazing this code worked.  Basically, we would get lucky in
register allocation and the tests using frontfacing would happen to
allocate gl_FrontFacing storage and the instructions generating
gl_FrontFacing but pointing at another register to the same hardware
register.  Noticed during register spilling debug, when suddenly they
didn't get allocatd the same storage.
src/mesa/drivers/dri/i965/brw_fs.cpp