diff options
author | Frans Gu <frans.gu@amd.com> | 2016-03-10 02:24:00 -0500 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2017-03-30 14:44:33 +0200 |
commit | ed1aca8e8f8a33f28323c16688880979d2165378 (patch) | |
tree | 09147ac572a492157540757056c187c6380a087a /src/amd/addrlib | |
parent | cb8844392cd34613db2f79edcc5ae2ac68fe5ec0 (diff) |
amdgpu/addrlib: do some tile mode conversions to display surface
Diffstat (limited to 'src/amd/addrlib')
-rw-r--r-- | src/amd/addrlib/core/addrlib1.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/amd/addrlib/core/addrlib1.cpp b/src/amd/addrlib/core/addrlib1.cpp index 516229a3f1..9cdc459867 100644 --- a/src/amd/addrlib/core/addrlib1.cpp +++ b/src/amd/addrlib/core/addrlib1.cpp @@ -3564,7 +3564,6 @@ VOID Lib::OptimizeTileMode( // Optimization can only be done on level 0 and samples <= 1 if ((doOpt == TRUE) && (pInOut->mipLevel == 0) && - (pInOut->flags.display == FALSE) && (IsPrtTileMode(tileMode) == FALSE) && (pInOut->flags.prt == FALSE)) { @@ -3587,7 +3586,9 @@ VOID Lib::OptimizeTileMode( if (macroTiledOK) { - if ((pInOut->flags.opt4Space == TRUE) && (pInOut->numSamples <= 1)) + if ((pInOut->flags.display == FALSE) && + (pInOut->flags.opt4Space == TRUE) && + (pInOut->numSamples <= 1)) { // Check if linear mode is optimal if ((pInOut->height == 1) && |