m_settings.depthPipeXorDisable = 1;
break;
+ case FAMILY_RV:
+ m_settings.isArcticIsland = 1;
+ m_settings.isRaven = ASICREV_IS_RAVEN(uChipRevision);
+
+ if (m_settings.isRaven)
+ {
+ m_settings.isDcn1 = 1;
+ }
+
+ m_settings.metaBaseAlignFix = 1;
+
+ m_settings.depthPipeXorDisable = 1;
+ break;
+
default:
ADDR_ASSERT(!"This should be a Fusion");
break;
break;
}
}
+ else if (m_settings.isDcn1)
+ {
+ switch (swizzleMode)
+ {
+ case ADDR_SW_4KB_D:
+ case ADDR_SW_64KB_D:
+ case ADDR_SW_VAR_D:
+ case ADDR_SW_64KB_D_T:
+ case ADDR_SW_4KB_D_X:
+ case ADDR_SW_64KB_D_X:
+ case ADDR_SW_VAR_D_X:
+ support = (pIn->bpp == 64);
+ break;
+
+ case ADDR_SW_LINEAR:
+ case ADDR_SW_4KB_S:
+ case ADDR_SW_64KB_S:
+ case ADDR_SW_VAR_S:
+ case ADDR_SW_64KB_S_T:
+ case ADDR_SW_4KB_S_X:
+ case ADDR_SW_64KB_S_X:
+ case ADDR_SW_VAR_S_X:
+ support = (pIn->bpp <= 64);
+ break;
+
+ default:
+ break;
+ }
+ }
else
{
ADDR_NOT_IMPLEMENTED();
// DCE12 does not support display surface to be _T swizzle mode
prtXor = FALSE;
}
+ else if (m_settings.isDcn1)
+ {
+ // _R is not supported by Dcn1
+ if (pIn->bpp == 64)
+ {
+ swType = ADDR_SW_D;
+ }
+ else
+ {
+ swType = ADDR_SW_S;
+ }
+
+ blockSet.micro = FALSE;
+ }
else
{
ADDR_NOT_IMPLEMENTED();
// Asic/Generation name
UINT_32 isArcticIsland : 1;
UINT_32 isVega10 : 1;
- UINT_32 reserved0 : 30;
+ UINT_32 isRaven : 1;
+ UINT_32 reserved0 : 29;
// Display engine IP version name
UINT_32 isDce12 : 1;
- UINT_32 reserved1 : 31;
+ UINT_32 isDcn1 : 1;
+ UINT_32 reserved1 : 29;
// Misc configuration bits
UINT_32 metaBaseAlignFix : 1;
if (IsXor(swizzleMode))
{
- if (m_settings.isVega10)
+ if (m_settings.isVega10 || m_settings.isRaven)
{
baseAlign = GetBlockSize(swizzleMode);
}
FAMILY_CZ,
FAMILY_PI,
FAMILY_AI,
+ FAMILY_RV,
FAMILY_LAST,
};
#define ASICREV_IS_VEGA10_P(eChipRev) \
((eChipRev) >= AI_VEGA10_P_A0 && (eChipRev) < AI_UNKNOWN)
+/* RV specific rev IDs */
+enum {
+ RAVEN_A0 = 0x01,
+ RAVEN_UNKNOWN = 0xFF
+};
+
+#define ASICREV_IS_RAVEN(eChipRev) \
+ ((eChipRev) >= RAVEN_A0 && (eChipRev) < RAVEN_UNKNOWN)
+
#endif /* AMDGPU_ID_H */