i965/fs: Do flat shading when appropriate.
authorEric Anholt <eric@anholt.net>
Wed, 12 Jan 2011 20:52:16 +0000 (12:52 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 12 Jan 2011 21:51:01 +0000 (13:51 -0800)
commitc3f000b3926988124a44ce7e8cd6588e46063058
treeab65b0641a6bd54e1c38200b290dac436584c71a
parent6881262eff2154e4252359c104e8c90052537eb5
i965/fs: Do flat shading when appropriate.

We were trying to interpolate, which would end up doing unnecessary
math, and doing so on undefined values.   Fixes glsl-fs-flat-color.
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h