radv: drop unused surface level members.
authorDave Airlie <airlied@redhat.com>
Tue, 2 May 2017 00:12:51 +0000 (10:12 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 2 May 2017 20:00:42 +0000 (06:00 +1000)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_radeon_winsys.h
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_surface.c

index 5858cfece5041db518c38f424c330ce86d827383..5614d8b378dd92c721e56a0c59fe562f400e2984 100644 (file)
@@ -167,9 +167,6 @@ struct radeon_surf_info {
 struct radeon_surf_level {
        uint64_t                    offset;
        uint64_t                    slice_size;
-       uint32_t                    npix_x;
-       uint32_t                    npix_y;
-       uint32_t                    npix_z;
        uint32_t                    nblk_x;
        uint32_t                    nblk_y;
        uint32_t                    nblk_z;
index 2cbf929514c2e3f6dddac17b3f53c523e1625738..c972ef110e7229edc6b0a21bd04758c55e65990c 100644 (file)
@@ -204,9 +204,6 @@ static int radv_compute_level(ADDR_HANDLE addrlib,
        surf_level->offset = align64(surf->bo_size, AddrSurfInfoOut->baseAlign);
        surf_level->slice_size = AddrSurfInfoOut->sliceSize;
        surf_level->pitch_bytes = AddrSurfInfoOut->pitch * (is_stencil ? 1 : surf->bpe);
-       surf_level->npix_x = u_minify(surf_info->width, level);
-       surf_level->npix_y = u_minify(surf_info->height, level);
-       surf_level->npix_z = u_minify(surf_info->depth, level);
        surf_level->nblk_x = AddrSurfInfoOut->pitch;
        surf_level->nblk_y = AddrSurfInfoOut->height;
        if (type == RADEON_SURF_TYPE_3D)