aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/addrlib/addrinterface.cpp
diff options
context:
space:
mode:
authorFrans Gu <[email protected]>2015-04-10 04:20:06 -0400
committerMarek Olšák <[email protected]>2017-03-30 14:44:33 +0200
commit7293a020bd07ab70e08e4e52bfeaf0951c275e2d (patch)
tree1e8e9b896e0000cd6384c6564e923e353c92e441 /src/amd/addrlib/addrinterface.cpp
parentc16e1e204184f65561fe4efe8238437caec074b8 (diff)
amdgpu/addrlib: Add new interface to support macro mode index query
Diffstat (limited to 'src/amd/addrlib/addrinterface.cpp')
-rw-r--r--src/amd/addrlib/addrinterface.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/amd/addrlib/addrinterface.cpp b/src/amd/addrlib/addrinterface.cpp
index 8e6e7ea8d26..196cd69f6e1 100644
--- a/src/amd/addrlib/addrinterface.cpp
+++ b/src/amd/addrlib/addrinterface.cpp
@@ -911,6 +911,38 @@ ADDR_E_RETURNCODE ADDR_API AddrConvertTileIndex(
/**
***************************************************************************************************
+* AddrGetMacroModeIndex
+*
+* @brief
+* Get macro mode index based on input parameters
+*
+* @return
+* ADDR_OK if successful, otherwise an error code of ADDR_E_RETURNCODE
+***************************************************************************************************
+*/
+ADDR_E_RETURNCODE ADDR_API AddrGetMacroModeIndex(
+ ADDR_HANDLE hLib, ///< address lib handle
+ const ADDR_GET_MACROMODEINDEX_INPUT* pIn, ///< [in] input
+ ADDR_GET_MACROMODEINDEX_OUTPUT* pOut) ///< [out] macro mode index
+{
+ AddrLib1* pLib = AddrLib1::GetAddrLib1(hLib);
+
+ ADDR_E_RETURNCODE returnCode;
+
+ if (pLib != NULL)
+ {
+ returnCode = pLib->GetMacroModeIndex(pIn, pOut);
+ }
+ else
+ {
+ returnCode = ADDR_ERROR;
+ }
+
+ return returnCode;
+}
+
+/**
+***************************************************************************************************
* AddrConvertTileIndex1
*
* @brief