Skip to content

Commit

Permalink
[VP] fix coverity null check issues
Browse files Browse the repository at this point in the history
fix coverity null check issues.
  • Loading branch information
Dylan-debug authored and intel-mediadev committed Dec 20, 2023
1 parent 57504f0 commit 6323354
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void VpVeboxCmdPacket::UpdateCpPrepareResources()
VP_FUNC_CALL();

VpVeboxRenderData *pRenderData = GetLastExecRenderData();
VP_RENDER_ASSERT(pRenderData);
VP_PUBLIC_CHK_NULL_NO_STATUS_RETURN(pRenderData);
// For 3DLut usage, it update in CpPrepareResources() for kernel usage, should
// reupdate here. For other feature usage, it already update in vp_pipeline
if (pRenderData->HDR3DLUT.is3DLutTableUpdatedByKernel == true)
Expand Down Expand Up @@ -530,7 +530,7 @@ MOS_STATUS VpVeboxCmdPacket::SetVeboxBeCSCParams(PVEBOX_CSC_PARAMS cscParams)
VP_RENDER_CHK_NULL_RETURN(cscParams);

VpVeboxRenderData* pRenderData = GetLastExecRenderData();
VP_RENDER_ASSERT(pRenderData);
VP_RENDER_CHK_NULL_RETURN(pRenderData);

pRenderData->IECP.BeCSC.bBeCSCEnabled = cscParams->bCSCEnabled;

Expand Down Expand Up @@ -573,7 +573,7 @@ MOS_STATUS VpVeboxCmdPacket::SetVeboxOutputAlphaParams(PVEBOX_CSC_PARAMS cscPara
VP_RENDER_CHK_NULL_RETURN(cscParams);

VpVeboxRenderData* pRenderData = GetLastExecRenderData();
VP_RENDER_ASSERT(pRenderData);
VP_RENDER_CHK_NULL_RETURN(pRenderData);

MHW_VEBOX_IECP_PARAMS& veboxIecpParams = pRenderData->GetIECPParams();

Expand Down Expand Up @@ -654,7 +654,7 @@ MOS_STATUS VpVeboxCmdPacket::SetVeboxChromasitingParams(PVEBOX_CSC_PARAMS cscPar
VP_RENDER_CHK_NULL_RETURN(cscParams);

VpVeboxRenderData* pRenderData = GetLastExecRenderData();
VP_RENDER_ASSERT(pRenderData);
VP_RENDER_CHK_NULL_RETURN(pRenderData);

MHW_VEBOX_CHROMA_SAMPLING& veboxChromaSamplingParams = pRenderData->GetChromaSubSamplingParams();

Expand Down Expand Up @@ -1588,6 +1588,7 @@ MOS_STATUS VpVeboxCmdPacket::PrepareVeboxCmd(
VP_RENDER_CHK_NULL_RETURN(pOsInterface);
VP_RENDER_CHK_NULL_RETURN(m_currentSurface);
VP_RENDER_CHK_NULL_RETURN(m_currentSurface->osSurface);
VP_RENDER_CHK_NULL_RETURN(pRenderData);

// Set initial state
iRemaining = CmdBuffer->iRemaining;
Expand Down

0 comments on commit 6323354

Please sign in to comment.