i965: Disable fast color clears on Skylake for now.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Nov 2014 23:34:56 +0000 (15:34 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Nov 2014 23:35:25 +0000 (15:35 -0800)
We're not programming the clear values yet, so this won't work.

This patch should be (effectively) reverted eventually.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_clear.c

index 0e5fef59e9fe929ef5aabc1a9e013111874c0fad..12314204803064b0612080dc0e1d0183731a23bd 100644 (file)
@@ -242,7 +242,7 @@ brw_clear(struct gl_context *ctx, GLbitfield mask)
    }
 
    /* Clear color buffers with fast clear or at least rep16 writes. */
-   if (brw->gen >= 6 && mask & BUFFER_BITS_COLOR) {
+   if (brw->gen >= 6 && brw->gen < 9 && (mask & BUFFER_BITS_COLOR)) {
       if (brw_meta_fast_clear(brw, fb, mask, partial_clear)) {
          debug_mask("blorp color", mask & BUFFER_BITS_COLOR);
          mask &= ~BUFFER_BITS_COLOR;