i965: Fix fog coordinate g,b,a values when glFrontFacing isn't used.
authorEric Anholt <eric@anholt.net>
Tue, 24 Mar 2009 05:35:03 +0000 (22:35 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 24 Mar 2009 05:52:17 +0000 (22:52 -0700)
commit411d913ccea362dbd75411266d7abb685214ee93
tree4335ff570f9ce44200b703239a1a2bc2d6d50fbd
parentb013f945d8514ed827183a4cbfbc4dccc100704f
i965: Fix fog coordinate g,b,a values when glFrontFacing isn't used.

Previously, we would sample (f,glFrontFacing,undef,undef) instead of the
(f,0,0,1) that fragment.fogcoord is supposed to return.  Due to
glFrontFacing's presence in FOGC.y, we'll still give bad results there when
glFrontFacing is used.

Bug #19122, piglit testcase fp-fog.
src/mesa/drivers/dri/i965/brw_wm_fp.c