gallium/radeon/winsyses: remove unused stencil_offset
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 29 Jun 2016 12:07:44 +0000 (14:07 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 6 Jul 2016 08:42:49 +0000 (10:42 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/radeon_winsys.h
src/gallium/winsys/amdgpu/drm/amdgpu_surface.c
src/gallium/winsys/radeon/drm/radeon_drm_surface.c

index 5910b000104c4b452716b9bf18e2b063f8a2c2c7..0bf6fd9753732aeed64e7e5d981f2ed2bb8f6fcf 100644 (file)
@@ -392,7 +392,6 @@ struct radeon_surf {
     uint32_t                    mtilea;
     uint32_t                    tile_split;
     uint32_t                    stencil_tile_split;
-    uint64_t                    stencil_offset;
     struct radeon_surf_level    level[RADEON_SURF_MAX_LEVEL];
     struct radeon_surf_level    stencil_level[RADEON_SURF_MAX_LEVEL];
     uint32_t                    tiling_index[RADEON_SURF_MAX_LEVEL];
index 081f0e1bcb6b397317848fb691fbf47fc92d018e..dd033e087e0a86e42e8a77f98af2b9617572f8d8 100644 (file)
@@ -455,8 +455,6 @@ static int amdgpu_surface_init(struct radeon_winsys *rws,
             return r;
 
          if (level == 0) {
-            surf->stencil_offset = surf->stencil_level[0].offset;
-
             /* For 2D modes only. */
             if (AddrSurfInfoOut.tileMode >= ADDR_TM_2D_TILED_THIN1) {
                surf->stencil_tile_split =
index c6025ff03d8e4f65a8773da708c1b7ca3cf3503c..0399e5a3680a0fdc3030bc4a733a61b967190b95 100644 (file)
@@ -123,7 +123,6 @@ static void surf_winsys_to_drm(struct radeon_surface *surf_drm,
     surf_drm->mtilea = surf_ws->mtilea;
     surf_drm->tile_split = surf_ws->tile_split;
     surf_drm->stencil_tile_split = surf_ws->stencil_tile_split;
-    surf_drm->stencil_offset = surf_ws->stencil_offset;
 
     for (i = 0; i < RADEON_SURF_MAX_LEVEL; i++) {
         surf_level_winsys_to_drm(&surf_drm->level[i], &surf_ws->level[i]);
@@ -163,7 +162,6 @@ static void surf_drm_to_winsys(struct radeon_drm_winsys *ws,
     surf_ws->mtilea = surf_drm->mtilea;
     surf_ws->tile_split = surf_drm->tile_split;
     surf_ws->stencil_tile_split = surf_drm->stencil_tile_split;
-    surf_ws->stencil_offset = surf_drm->stencil_offset;
 
     surf_ws->macro_tile_index = cik_get_macro_tile_index(surf_ws);