From: Kenneth Graunke Date: Fri, 7 Feb 2014 22:02:36 +0000 (-0800) Subject: i965: Enable fast depth clears. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98e048cf323c22688bfa465153e648005e555d12;p=mesa.git i965: Enable fast depth clears. They work fine now, too. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- 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))