From 98e048cf323c22688bfa465153e648005e555d12 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 7 Feb 2014 14:02:36 -0800 Subject: [PATCH] i965: Enable fast depth clears. They work fine now, too. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/brw_clear.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_clear.c b/src/mesa/drivers/dri/i965/brw_clear.c index d9a879239ec..b2cea98dbd6 100644 --- a/src/mesa/drivers/dri/i965/brw_clear.c +++ b/src/mesa/drivers/dri/i965/brw_clear.c @@ -111,7 +111,7 @@ brw_fast_clear_depth(struct gl_context *ctx) struct intel_mipmap_tree *mt = depth_irb->mt; struct gl_renderbuffer_attachment *depth_att = &fb->Attachment[BUFFER_DEPTH]; - if (brw->gen < 6 || brw->gen >= 8) + if (brw->gen < 6) return false; if (!intel_renderbuffer_has_hiz(depth_irb)) -- 2.30.2