Mesa (7.10): i965: use BLT to clear buffer if possible on Sandybridge

Haihao Xiang haihao at kemper.freedesktop.org
Tue Jan 4 22:15:12 PST 2011


Module: Mesa
Branch: 7.10
Commit: 4e8f123f14e4a5bbd47c8cf7ec0c02d4ee6efd2d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4e8f123f14e4a5bbd47c8cf7ec0c02d4ee6efd2d

Author: Xiang, Haihao <haihao.xiang at intel.com>
Date:   Wed Jan  5 13:32:40 2011 +0800

i965: use BLT to clear buffer if possible on Sandybridge

This fixes https://bugs.freedesktop.org/show_bug.cgi?id=32713
(cherry picked from commit 266d8eed6927650a55974a293959fe21073030bb)

---

 src/mesa/drivers/dri/intel/intel_clear.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_clear.c b/src/mesa/drivers/dri/intel/intel_clear.c
index 8472911..82d29e7 100644
--- a/src/mesa/drivers/dri/intel/intel_clear.c
+++ b/src/mesa/drivers/dri/intel/intel_clear.c
@@ -169,12 +169,6 @@ intelClear(struct gl_context *ctx, GLbitfield mask)
       }
    }
 
-   if (intel->gen >= 6) {
-      /* Blits are in a different ringbuffer so we don't use them. */
-      tri_mask |= blit_mask;
-      blit_mask = 0;
-   }
-
    /* Anything left, just use tris */
    tri_mask |= mask & ~blit_mask;
 



More information about the mesa-commit mailing list