[Mesa-dev] [PATCH 10/10] gallium/radeon: remove stencil_tile_split from metadata

Marek Olšák maraeo at gmail.com
Sun May 1 13:51:15 UTC 2016


From: Marek Olšák <marek.olsak at amd.com>

this is a leftover from the days when depth-stencil buffers were
allocated by the DDX
---
 src/gallium/drivers/radeon/r600_texture.c     | 2 --
 src/gallium/drivers/radeon/radeon_winsys.h    | 1 -
 src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 4 ----
 3 files changed, 7 deletions(-)

diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
index 9aca0c2..67b2a34 100644
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -245,7 +245,6 @@ static void r600_texture_init_metadata(struct r600_texture *rtex,
 	metadata->bankw = surface->bankw;
 	metadata->bankh = surface->bankh;
 	metadata->tile_split = surface->tile_split;
-	metadata->stencil_tile_split = surface->stencil_tile_split;
 	metadata->mtilea = surface->mtilea;
 	metadata->num_banks = surface->num_banks;
 	metadata->stride = surface->level[0].pitch_bytes;
@@ -1035,7 +1034,6 @@ static struct pipe_resource *r600_texture_from_handle(struct pipe_screen *screen
 	surface.bankw = metadata.bankw;
 	surface.bankh = metadata.bankh;
 	surface.tile_split = metadata.tile_split;
-	surface.stencil_tile_split = metadata.stencil_tile_split;
 	surface.mtilea = metadata.mtilea;
 	surface.num_banks = metadata.num_banks;
 
diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/drivers/radeon/radeon_winsys.h
index 626f766..79c548c 100644
--- a/src/gallium/drivers/radeon/radeon_winsys.h
+++ b/src/gallium/drivers/radeon/radeon_winsys.h
@@ -293,7 +293,6 @@ struct radeon_bo_metadata {
     unsigned                bankw;
     unsigned                bankh;
     unsigned                tile_split;
-    unsigned                stencil_tile_split;
     unsigned                mtilea;
     unsigned                num_banks;
     unsigned                stride;
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
index 2c3098e..dd41dc7 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
@@ -665,7 +665,6 @@ static void radeon_bo_get_metadata(struct pb_buffer *_buf,
     md->bankw = (args.tiling_flags >> RADEON_TILING_EG_BANKW_SHIFT) & RADEON_TILING_EG_BANKW_MASK;
     md->bankh = (args.tiling_flags >> RADEON_TILING_EG_BANKH_SHIFT) & RADEON_TILING_EG_BANKH_MASK;
     md->tile_split = (args.tiling_flags >> RADEON_TILING_EG_TILE_SPLIT_SHIFT) & RADEON_TILING_EG_TILE_SPLIT_MASK;
-    md->stencil_tile_split = (args.tiling_flags >> RADEON_TILING_EG_STENCIL_TILE_SPLIT_SHIFT) & RADEON_TILING_EG_STENCIL_TILE_SPLIT_MASK;
     md->mtilea = (args.tiling_flags >> RADEON_TILING_EG_MACRO_TILE_ASPECT_SHIFT) & RADEON_TILING_EG_MACRO_TILE_ASPECT_MASK;
     md->tile_split = eg_tile_split(md->tile_split);
     md->scanout = bo->rws->gen >= DRV_SI && !(args.tiling_flags & RADEON_TILING_R600_NO_SCANOUT);
@@ -698,9 +697,6 @@ static void radeon_bo_set_metadata(struct pb_buffer *_buf,
 			      RADEON_TILING_EG_TILE_SPLIT_MASK) <<
 	    RADEON_TILING_EG_TILE_SPLIT_SHIFT;
     }
-    args.tiling_flags |= (md->stencil_tile_split &
-			  RADEON_TILING_EG_STENCIL_TILE_SPLIT_MASK) <<
-        RADEON_TILING_EG_STENCIL_TILE_SPLIT_SHIFT;
     args.tiling_flags |= (md->mtilea & RADEON_TILING_EG_MACRO_TILE_ASPECT_MASK) <<
         RADEON_TILING_EG_MACRO_TILE_ASPECT_SHIFT;
 
-- 
2.7.4



More information about the mesa-dev mailing list