From: Xiao-Tao Zai Date: Wed, 25 Jun 2014 15:06:00 +0000 (-0400) Subject: amdgpu/addrlib: allow tileSplitBytes greater than row size X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47de94a79414e241d4f37b8e38e3cc5396ce5b3f;p=mesa.git amdgpu/addrlib: allow tileSplitBytes greater than row size Carrizo row size is 1K, while tileSplitBytes is 2K for a 4xAA 32bpp depth surface. Remove the sanity check that tileSplitBytes must be greater than row size. There could be performance loss but may be covered by non-split depth which enables tc-compatible read. --- diff --git a/src/amd/addrlib/r800/egbaddrlib.cpp b/src/amd/addrlib/r800/egbaddrlib.cpp index e53479839e1..abd1a79ed80 100644 --- a/src/amd/addrlib/r800/egbaddrlib.cpp +++ b/src/amd/addrlib/r800/egbaddrlib.cpp @@ -994,7 +994,7 @@ BOOL_32 EgBasedAddrLib::SanityCheckMacroTiled( { if (pTileInfo->tileSplitBytes > m_rowSize) { - valid = FALSE; + ADDR_WARN(0, ("tileSplitBytes is bigger than row size")); } }