WebGL Aquarium in Chrome 24 actually hits this.
Signed-off-by: Kenneth Graunke <[email protected]>
Cc: Dylan Baker <[email protected]>
Cc: Keith Packard <[email protected]>
Cc: Eric Anholt <[email protected]>
---
src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
index 76f8299..45b9fa0 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
+++ b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
@@ -502,6 +502,11 @@ do_single_blorp_clear(struct brw_context *brw, struct
gl_framebuffer *fb,
struct gl_context *ctx = &brw->ctx;
struct intel_renderbuffer *irb = intel_renderbuffer(rb);
+ /* If color writes are entirely disabled, there's nothing to do. */
+ GLubyte *color_mask = ctx->Color.ColorMask[buf];
+ if ((color_mask[0] | color_mask[1] | color_mask[2] | color_mask[3]) == 0)
+ return true;
+
brw_blorp_clear_params params(brw, fb, rb, ctx->Color.ColorMask[buf],
partial_clear, layer);
--
1.9.0
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev