We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c04653 commit c9ca417Copy full SHA for c9ca417
Source/GmmLib/TranslationTable/GmmAuxTable.cpp
@@ -938,8 +938,17 @@ GMM_GFX_ADDRESS GMM_INLINE GmmLib::AuxTable::__GetCCSCacheline(GMM_RESOURCE_INFO
938
if(BaseIsYF)
939
{
940
uint32_t PitchIn4YF = BasePitchInTiles / 4; //Base Pitch is physically padded to 4x1 YF width
941
- i = static_cast<uint32_t>(AdrOffset % PitchIn4YF);
942
- j = static_cast<uint32_t>(AdrOffset / PitchIn4YF);
+
+ if (PitchIn4YF != 0)
943
+ {
944
+ i = static_cast<uint32_t>(AdrOffset % PitchIn4YF);
945
+ j = static_cast<uint32_t>(AdrOffset / PitchIn4YF);
946
+ }
947
+ else
948
949
+ __GMM_ASSERT(PitchIn4YF != 0);
950
+ return 0;
951
952
}
953
else if(BasePitchInTiles != 0) //TileYs
954
0 commit comments