i965: Switch blit color clears to tri clears on gen4/5.
authorEric Anholt <eric@anholt.net>
Fri, 18 May 2012 18:55:53 +0000 (11:55 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 23 May 2012 17:18:26 +0000 (10:18 -0700)
commit7c3e88f1fc2aa9d3740163bcf8718e6d8709a204
tree6a82f80a15036fa8598534f259b80b32a1336005
parentfa15b0f3f05ed5b6e96e9eda21d75ed7e8f1466f
i965: Switch blit color clears to tri clears on gen4/5.

Our understanding is that the 3D engine is supposed to be faster
anyway.  We used to have more overhead in our tri clear path than we
do today, which would have led to this choice.  But given that we
almost always see a depth clear along with a color clear, the path was
hardly exercised anyway.

Also, the color mask logic was broken in the presence of
GL_EXT_draw_buffers2's per-buffer colormask.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_clear.c