amd/addrlib: remove unused members of ADDR2_COMPUTE_DCC_ADDRFROMCOORD_INPUT
authorMarek Olšák <marek.olsak@amd.com>
Tue, 9 Jun 2020 07:06:22 +0000 (03:06 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Jun 2020 15:35:46 +0000 (15:35 +0000)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5398>

src/amd/addrlib/inc/addrinterface.h
src/amd/common/ac_surface.c

index b640dee272eff2ebe8de4830aa651dca137d5535..c0e370f2be2f8fa51fea7b484b2130cccf7761f1 100644 (file)
@@ -3349,12 +3349,9 @@ typedef struct _ADDR2_COMPUTE_DCC_ADDRFROMCOORD_INPUT
     UINT_32             mipId;               ///< mipmap level id
 
     ADDR2_META_FLAGS    dccKeyFlags;         ///< DCC flags
-    ADDR2_SURFACE_FLAGS colorFlags;          ///< Color surface flags
     AddrResourceType    resourceType;        ///< Color surface type
     AddrSwizzleMode     swizzleMode;         ///< Color surface swizzle mode
     UINT_32             bpp;                 ///< Color surface bits per pixel
-    UINT_32             unalignedWidth;      ///< Color surface original width (of mip0)
-    UINT_32             unalignedHeight;     ///< Color surface original height (of mip0)
     UINT_32             numSlices;           ///< Color surface original slices (of mip0)
     UINT_32             numMipLevels;        ///< Color surface mipmap levels
     UINT_32             numFrags;            ///< Color surface fragment number
index 732aea871d68cfc78fdd89c679ee772db257d610..6621411b0087a989b0a6b1d8d77fae78219c80d7 100644 (file)
@@ -1369,12 +1369,9 @@ static int gfx9_compute_miptree(ADDR_HANDLE addrlib,
                                        /* Compute address mapping from non-displayable to displayable DCC. */
                                        ADDR2_COMPUTE_DCC_ADDRFROMCOORD_INPUT addrin = {};
                                        addrin.size             = sizeof(addrin);
-                                       addrin.colorFlags.color = 1;
                                        addrin.swizzleMode      = din.swizzleMode;
                                        addrin.resourceType     = din.resourceType;
                                        addrin.bpp              = din.bpp;
-                                       addrin.unalignedWidth   = din.unalignedWidth;
-                                       addrin.unalignedHeight  = din.unalignedHeight;
                                        addrin.numSlices        = 1;
                                        addrin.numMipLevels     = 1;
                                        addrin.numFrags         = 1;