diff options
author | Frans Gu <[email protected]> | 2016-03-04 05:04:23 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-03-30 14:44:33 +0200 |
commit | 6764d96eaaebc641c81cfc5666d99e8aa6ae698c (patch) | |
tree | 4d184dd088d406099bbc0c9674ab178100420532 /src/amd/addrlib/addrinterface.h | |
parent | ed1aca8e8f8a33f28323c16688880979d2165378 (diff) |
amdgpu/addrlib: Adjust bank equation bit order based on macro tile aspect ratio settings
By this way, we can have valid equation for 2D_THIN1 tile mode.
Add flag "preferEquation" to return equation index without adjusting
input tile mode.
Diffstat (limited to 'src/amd/addrlib/addrinterface.h')
-rw-r--r-- | src/amd/addrlib/addrinterface.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/amd/addrlib/addrinterface.h b/src/amd/addrlib/addrinterface.h index 065545e8f01..c68cacf0952 100644 --- a/src/amd/addrlib/addrinterface.h +++ b/src/amd/addrlib/addrinterface.h @@ -146,10 +146,12 @@ typedef union _ADDR_EQUATION_KEY UINT_32 tileMode : 5; ///< Tile mode UINT_32 microTileType : 3; ///< Micro tile type UINT_32 pipeConfig : 5; ///< pipe config - UINT_32 numBanks : 5; ///< Number of banks + UINT_32 numBanksLog2 : 3; ///< Number of banks log2 UINT_32 bankWidth : 4; ///< Bank width UINT_32 bankHeight : 4; ///< Bank height UINT_32 macroAspectRatio : 3; ///< Macro tile aspect ratio + UINT_32 prt : 1; ///< SI only, indicate whether this equation is for prt + UINT_32 reserved : 1; ///< Reserved bit } fields; UINT_32 value; } ADDR_EQUATION_KEY; @@ -516,7 +518,8 @@ typedef union _ADDR_SURFACE_FLAGS UINT_32 skipIndicesOutput : 1; ///< Skipping indices in output. UINT_32 rotateDisplay : 1; ///< Rotate micro tile type UINT_32 minimizeAlignment : 1; ///< Minimize alignment - UINT_32 reserved : 5; ///< Reserved bits + UINT_32 preferEquation : 1; ///< Return equation index without adjusting tile mode + UINT_32 reserved : 4; ///< Reserved bits }; UINT_32 value; |