From: Kenneth Graunke Date: Mon, 3 Nov 2014 23:34:56 +0000 (-0800) Subject: i965: Disable fast color clears on Skylake for now. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7819650979d1fa5339af3eacfa1af1090bf53e8;p=mesa.git i965: Disable fast color clears on Skylake for now. 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 --- diff --git a/src/mesa/drivers/dri/i965/brw_clear.c b/src/mesa/drivers/dri/i965/brw_clear.c index 0e5fef59e9f..12314204803 100644 --- a/src/mesa/drivers/dri/i965/brw_clear.c +++ b/src/mesa/drivers/dri/i965/brw_clear.c @@ -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;