Skip to content

Commit 788fd77

Browse files
peiyigu-intelintel-mediadev
authored andcommitted
[VP] Fix Coverity Issue
fix issue
1 parent 0bdf3ab commit 788fd77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

media_softlet/agnostic/common/renderhal/renderhal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6804,7 +6804,7 @@ MOS_STATUS RenderHal_SetAndGetSamplerStates(
68046804
case MHW_SAMPLER_TYPE_3D:
68056805
MHW_RENDERHAL_CHK_VALUE_RETURN(Mos_ResourceIsNull(&pStateHeap->GshOsResource), false);
68066806
stateGfxAddress = pRenderHal->pOsInterface->pfnGetResourceGfxAddress(pRenderHal->pOsInterface, &pStateHeap->GshOsResource) + iOffsetSampler;
6807-
stateGfxAddress += (pRenderHal->pHwSizes->dwSizeSamplerState * i);
6807+
stateGfxAddress += (static_cast<uint64_t>(pRenderHal->pHwSizes->dwSizeSamplerState) * static_cast<uint64_t>(i));
68086808
eStatus = pRenderHal->pMhwStateHeap->SetSamplerState(pPtrSampler, pSamplerStateParams);
68096809
break;
68106810
default:

0 commit comments

Comments
 (0)