OSDN Git Service

i915: Drop gen4+ code from the forked clear code.
authorEric Anholt <eric@anholt.net>
Mon, 21 May 2012 16:13:33 +0000 (09:13 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 23 May 2012 17:18:26 +0000 (10:18 -0700)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i915/intel_clear.c

index 3316351..96d9c8f 100644 (file)
@@ -89,9 +89,6 @@ intelClear(struct gl_context *ctx, GLbitfield mask)
    struct intel_renderbuffer *irb;
    int i;
 
-   if (!_mesa_check_conditional_render(ctx))
-      return;
-
    if (mask & (BUFFER_BIT_FRONT_LEFT | BUFFER_BIT_FRONT_RIGHT)) {
       intel->front_buffer_dirty = true;
    }
@@ -116,7 +113,7 @@ intelClear(struct gl_context *ctx, GLbitfield mask)
    }
 
    /* HW color buffers (front, back, aux, generic FBO, etc) */
-   if (intel->gen < 6 && colorMask == ~0) {
+   if (colorMask == ~0) {
       /* clear all R,G,B,A */
       blit_mask |= (mask & BUFFER_BITS_COLOR);
    }
@@ -143,12 +140,6 @@ intelClear(struct gl_context *ctx, GLbitfield mask)
             */
             tri_mask |= BUFFER_BIT_STENCIL;
          }
-        else if (intel->has_separate_stencil &&
-              stencilRegion->tiling == I915_TILING_NONE) {
-           /* The stencil buffer is actually W tiled, which the hardware
-            * cannot blit to. */
-           tri_mask |= BUFFER_BIT_STENCIL;
-        }
          else {
             /* clearing all stencil bits, use blitting */
             blit_mask |= BUFFER_BIT_STENCIL;