[Mesa-dev] [PATCH 1/7] radeon/r200: remove hyperz/fast clear testing code

Brian Paul brianp at vmware.com
Sun Mar 11 17:33:51 PDT 2012


The flags which were computed were never actually used.
---
 src/mesa/drivers/dri/r200/r200_ioctl.c     |   10 ----------
 src/mesa/drivers/dri/radeon/radeon_ioctl.c |   10 ----------
 2 files changed, 0 insertions(+), 20 deletions(-)

diff --git a/src/mesa/drivers/dri/r200/r200_ioctl.c b/src/mesa/drivers/dri/r200/r200_ioctl.c
index e3570c2..e548fac 100644
--- a/src/mesa/drivers/dri/r200/r200_ioctl.c
+++ b/src/mesa/drivers/dri/r200/r200_ioctl.c
@@ -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);
 }
 
diff --git a/src/mesa/drivers/dri/radeon/radeon_ioctl.c b/src/mesa/drivers/dri/radeon/radeon_ioctl.c
index 434f2b6..22118a7 100644
--- a/src/mesa/drivers/dri/radeon/radeon_ioctl.c
+++ b/src/mesa/drivers/dri/radeon/radeon_ioctl.c
@@ -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);
 }
 
-- 
1.7.3.4



More information about the mesa-dev mailing list