/*
- * Copyright © 2007-2018 Advanced Micro Devices, Inc.
+ * Copyright © 2007-2019 Advanced Micro Devices, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
{
ADDR_E_RETURNCODE returnCode = ADDR_OK;
- if (m_settings.isVolcanicIslands && IsMacroTiled(pIn->tileMode))
+ if (SupportDccAndTcCompatibility() && IsMacroTiled(pIn->tileMode))
{
UINT_64 dccFastClearSize = pIn->colorSurfSize >> 8;
{
ADDR_E_RETURNCODE returnCode = ADDR_NOTSUPPORTED;
- if ((m_settings.isVolcanicIslands == TRUE) &&
+ if ((SupportDccAndTcCompatibility() == TRUE) &&
(pIn->flags.tcCompatible == TRUE))
{
UINT_32 numOfPipes = HwlGetPipes(pIn->pTileInfo);
{
ADDR_E_RETURNCODE returnCode = ADDR_NOTSUPPORTED;
- if ((m_settings.isVolcanicIslands == TRUE) &&
+ if ((SupportDccAndTcCompatibility() == TRUE) &&
(pIn->flags.tcCompatible == TRUE))
{
UINT_32 numOfPipes = HwlGetPipes(pIn->pTileInfo);
if ((pIn->mipLevel > 0) &&
(pOut->tcCompatible == TRUE) &&
(pOut->tileMode != pIn->tileMode) &&
- (m_settings.isVolcanicIslands == TRUE))
+ (SupportDccAndTcCompatibility() == TRUE))
{
pOut->tcCompatible = CheckTcCompatibility(pOut->pTileInfo, pIn->bpp, pOut->tileMode, pOut->tileType, pOut);
}
}
// tcCompatible flag is only meaningful for gfx8.
- if (m_settings.isVolcanicIslands == FALSE)
+ if (SupportDccAndTcCompatibility() == FALSE)
{
flags.tcCompatible = FALSE;
}
UINT_32 heightAlign ///< [in] height alignment
) const
{
- if ((m_settings.isVolcanicIslands == TRUE) &&
+ if ((SupportDccAndTcCompatibility() == TRUE) &&
(flags.dccCompatible == TRUE) &&
(numSamples > 1) &&
(mipLevel == 0) &&
for (UINT_32 i = 0; i < m_noOfMacroEntries; i++)
{
- if ((m_settings.isVolcanicIslands) && IsMacroTiled(m_tileTable[i].mode))
+ if (SupportDccAndTcCompatibility() && IsMacroTiled(m_tileTable[i].mode))
{
maxBank = Max(maxBank, m_macroTileTable[i].banks);
}