Revert "i965: For color clears, only disable writes to components that exist."

This reverts commit 2919c3fdb4.

For formats like BGRX, looping through 0..num_components works fine.
But for formats like XRGB, we'd check the color mask for X and fail to
check it for B.
This commit is contained in:
Kenneth Graunke
2014-03-21 17:02:41 -07:00
parent 2919c3fdb4
commit 4c79f088c0
@@ -231,7 +231,7 @@ brw_blorp_clear_params::brw_blorp_clear_params(struct brw_context *brw,
/* Constant color writes ignore everyting in blend and color calculator
* state. This is not documented.
*/
for (int i = 0; i < _mesa_format_num_components(irb->mt->format); i++) {
for (int i = 0; i < 4; i++) {
if (!color_mask[i]) {
color_write_disable[i] = true;
wm_prog_key.use_simd16_replicated_data = false;