radeon/r200: remove hyperz/fast clear testing code
authorBrian Paul <brianp@vmware.com>
Mon, 12 Mar 2012 00:31:32 +0000 (18:31 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 12 Mar 2012 17:40:43 +0000 (11:40 -0600)
The flags which were computed were never actually used.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/r200/r200_ioctl.c
src/mesa/drivers/dri/radeon/radeon_ioctl.c

index e3570c2a08a6cc7c98eaea3122b8212cc2a2bec6..e548fac32837eee4b52d6bcde6aa8000771602b3 100644 (file)
@@ -98,16 +98,6 @@ static void r200Clear( struct gl_context *ctx, GLbitfield mask )
    if ( !flags )
       return;
 
-   if (rmesa->using_hyperz) {
-      flags |= RADEON_USE_COMP_ZBUF;
-/*      if (rmesa->radeon.radeonScreen->chip_family == CHIP_FAMILY_R200)
-        flags |= RADEON_USE_HIERZ; */
-      if (!((flags & RADEON_DEPTH) && (flags & RADEON_STENCIL) &&
-           ((rmesa->radeon.state.stencil.clear & R200_STENCIL_WRITE_MASK) == R200_STENCIL_WRITE_MASK))) {
-         flags |= RADEON_CLEAR_FASTZ;
-      }
-   }
-
    radeonUserClear(ctx, orig_mask);
 }
 
index 434f2b61c7a3b1a34174c9798257b0491ac82f67..22118a7840408872c86cb998e41cc66810377109 100644 (file)
@@ -423,16 +423,6 @@ static void radeonClear( struct gl_context *ctx, GLbitfield mask )
    if ( !flags )
       return;
 
-   if (rmesa->using_hyperz) {
-      flags |= RADEON_USE_COMP_ZBUF;
-/*      if (rmesa->radeon.radeonScreen->chipset & RADEON_CHIPSET_TCL)
-         flags |= RADEON_USE_HIERZ; */
-      if (((flags & RADEON_DEPTH) && (flags & RADEON_STENCIL) &&
-           ((rmesa->radeon.state.stencil.clear & RADEON_STENCIL_WRITE_MASK) == RADEON_STENCIL_WRITE_MASK))) {
-         flags |= RADEON_CLEAR_FASTZ;
-      }
-   }
-
    radeonUserClear(ctx, orig_mask);
 }