From: Nicolai Hähnle Date: Wed, 29 Jun 2016 12:07:44 +0000 (+0200) Subject: gallium/radeon/winsyses: remove unused stencil_offset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19f8d2a843dc4b3b40b5b85371007e8ecc83186d;p=mesa.git gallium/radeon/winsyses: remove unused stencil_offset Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/drivers/radeon/radeon_winsys.h index 5910b000104..0bf6fd97537 100644 --- a/src/gallium/drivers/radeon/radeon_winsys.h +++ b/src/gallium/drivers/radeon/radeon_winsys.h @@ -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]; diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c b/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c index 081f0e1bcb6..dd033e087e0 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c @@ -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 = diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_surface.c b/src/gallium/winsys/radeon/drm/radeon_drm_surface.c index c6025ff03d8..0399e5a3680 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_surface.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_surface.c @@ -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);