diff options
author | Marek Olšák <[email protected]> | 2020-06-09 03:06:22 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-10 15:35:46 +0000 |
commit | e6996d6fbdf3f9351caf7ad94c2b10156c34c7b1 (patch) | |
tree | 468fb5e696eabf48c6639e55a5d7b025c8befab2 | |
parent | a99f4d5382c2a3053c2938f9035b8872ab2c542f (diff) |
amd/addrlib: remove unused members of ADDR2_COMPUTE_DCC_ADDRFROMCOORD_INPUT
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5398>
-rw-r--r-- | src/amd/addrlib/inc/addrinterface.h | 3 | ||||
-rw-r--r-- | src/amd/common/ac_surface.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/amd/addrlib/inc/addrinterface.h b/src/amd/addrlib/inc/addrinterface.h index b640dee272e..c0e370f2be2 100644 --- a/src/amd/addrlib/inc/addrinterface.h +++ b/src/amd/addrlib/inc/addrinterface.h @@ -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 diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index 732aea871d6..6621411b008 100644 --- a/src/amd/common/ac_surface.c +++ b/src/amd/common/ac_surface.c @@ -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; |