i965: Avoid recompiles for fragment clamping on non-clamping APIs.
authorEric Anholt <eric@anholt.net>
Mon, 15 Apr 2013 23:44:55 +0000 (16:44 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 25 Apr 2013 19:03:00 +0000 (12:03 -0700)
commit578987ce1c17d17cfa538eb70d07a751fda55eb1
tree3ebb054b7d72e6af58160b6d358b571e17e605d9
parentb5145ca2a810b0a65311a18bffd05db35b2a21d6
i965: Avoid recompiles for fragment clamping on non-clamping APIs.

Removes 75/78 state-dependent recompiles in GLB2.7 (the remaining 3 are
due to FBO-rendering size predictions).  We currently expose
GL_ARB_color_buffer_float on GL core, so we may mis-predict there, but I'm
about to send a patch for removing that silly extension in that case.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_vs.c