Mesa (master): i965: We always have GLSL, so always use it for tri clears.

Eric Anholt anholt at kemper.freedesktop.org
Wed May 23 17:44:43 UTC 2012


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

Author: Eric Anholt <eric at anholt.net>
Date:   Fri May 18 11:53:29 2012 -0700

i965: We always have GLSL, so always use it for tri clears.

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>

---

 src/mesa/drivers/dri/i965/brw_clear.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_clear.c b/src/mesa/drivers/dri/i965/brw_clear.c
index 3316351..604a680 100644
--- a/src/mesa/drivers/dri/i965/brw_clear.c
+++ b/src/mesa/drivers/dri/i965/brw_clear.c
@@ -188,10 +188,7 @@ intelClear(struct gl_context *ctx, GLbitfield mask)
 
    if (tri_mask) {
       debug_mask("tri", tri_mask);
-      if (ctx->Extensions.ARB_fragment_shader)
-	 _mesa_meta_glsl_Clear(&intel->ctx, tri_mask);
-      else
-	 _mesa_meta_Clear(&intel->ctx, tri_mask);
+      _mesa_meta_glsl_Clear(&intel->ctx, tri_mask);
    }
 }
 




More information about the mesa-commit mailing list