mirror of https://github.com/intel/gmmlib.git
Fix for type incompatibilities (#227)
This commit is contained in:
parent
8325c5683b
commit
c6194729d1
|
@ -2364,7 +2364,7 @@ bool GMM_STDCALL GmmLib::GmmResourceInfoCommon::IsMipRCCAligned(uint8_t &MisAlig
|
|||
const uint8_t RCCCachelineWidth = 32;
|
||||
const uint8_t RCCCachelineHeight = 4;
|
||||
|
||||
for(uint8_t lod = 0; lod <= GetMaxLod(); lod++)
|
||||
for(uint8_t lod = 0; lod <= ((uint8_t)GetMaxLod()); lod++)
|
||||
{
|
||||
if(!(GFX_IS_ALIGNED(GetMipWidth(lod), RCCCachelineWidth) &&
|
||||
GFX_IS_ALIGNED(GetMipHeight(lod), RCCCachelineHeight)))
|
||||
|
|
|
@ -848,7 +848,7 @@ void GmmLib::GmmTextureCalc::SetPlanarOffsetInfo(GMM_TEXTURE_INFO *pTexInfo, GMM
|
|||
{
|
||||
pTexInfo->OffsetInfo.Plane.IsTileAlignedPlanes = true;
|
||||
}
|
||||
for(uint8_t i = 1; i <= CreateParams.NoOfPlanes; i++)
|
||||
for(uint32_t i = 1; i <= CreateParams.NoOfPlanes; i++)
|
||||
{
|
||||
pTexInfo->OffsetInfo.Plane.X[i] = CreateParams.PlaneOffset.X[i];
|
||||
pTexInfo->OffsetInfo.Plane.Y[i] = CreateParams.PlaneOffset.Y[i];
|
||||
|
@ -866,7 +866,7 @@ void GmmLib::GmmTextureCalc::SetPlanarOffsetInfo_2(GMM_TEXTURE_INFO *pTexInfo, G
|
|||
{
|
||||
pTexInfo->OffsetInfo.Plane.IsTileAlignedPlanes = true;
|
||||
}
|
||||
for(uint8_t i = 1; i <= CreateParams.NoOfPlanes; i++)
|
||||
for(uint32_t i = 1; i <= CreateParams.NoOfPlanes; i++)
|
||||
{
|
||||
pTexInfo->OffsetInfo.Plane.X[i] = CreateParams.PlaneOffset.X[i];
|
||||
pTexInfo->OffsetInfo.Plane.Y[i] = CreateParams.PlaneOffset.Y[i];
|
||||
|
|
|
@ -1204,7 +1204,7 @@ void GmmLib::GmmXe_LPGTextureCalc::SetPlanarOffsetInfo(GMM_TEXTURE_INFO *pTexInf
|
|||
{
|
||||
pTexInfo->OffsetInfo.PlaneXe_LPG.IsTileAlignedPlanes = true;
|
||||
}
|
||||
for(uint8_t i = 1; i <= CreateParams.NoOfPlanes; i++)
|
||||
for(uint32_t i = 1; i <= CreateParams.NoOfPlanes; i++)
|
||||
{
|
||||
pTexInfo->OffsetInfo.PlaneXe_LPG.X[i] = CreateParams.PlaneOffset.X[i];
|
||||
pTexInfo->OffsetInfo.PlaneXe_LPG.Y[i] = CreateParams.PlaneOffset.Y[i];
|
||||
|
@ -1222,7 +1222,7 @@ void GmmLib::GmmXe_LPGTextureCalc::SetPlanarOffsetInfo_2(GMM_TEXTURE_INFO *pTexI
|
|||
{
|
||||
pTexInfo->OffsetInfo.PlaneXe_LPG.IsTileAlignedPlanes = true;
|
||||
}
|
||||
for(uint8_t i = 1; i <= CreateParams.NoOfPlanes; i++)
|
||||
for(uint32_t i = 1; i <= CreateParams.NoOfPlanes; i++)
|
||||
{
|
||||
pTexInfo->OffsetInfo.PlaneXe_LPG.X[i] = CreateParams.PlaneOffset.X[i];
|
||||
pTexInfo->OffsetInfo.PlaneXe_LPG.Y[i] = CreateParams.PlaneOffset.Y[i];
|
||||
|
|
Loading…
Reference in New Issue