Mesa (master): i965: Enable fast depth clears.

Kenneth Graunke kwg at kemper.freedesktop.org
Wed Feb 19 09:43:13 UTC 2014


Module: Mesa
Branch: master
Commit: 98e048cf323c22688bfa465153e648005e555d12
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=98e048cf323c22688bfa465153e648005e555d12

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Fri Feb  7 14:02:36 2014 -0800

i965: Enable fast depth clears.

They work fine now, too.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 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 d9a8792..b2cea98 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))




More information about the mesa-commit mailing list