Skip to content

Commit

Permalink
[Media Common] [VP] fix check return
Browse files Browse the repository at this point in the history
add CreateHeap check status return
  • Loading branch information
Dylan-debug authored and intel-mediadev committed Dec 27, 2023
1 parent 765dd93 commit c8c94f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ CodechalDecodeHistogramVebox::CodechalDecodeHistogramVebox(
MOS_ZeroMemory(&m_resStatisticsOutput, sizeof(m_resStatisticsOutput));
MOS_ZeroMemory(&m_outputSurface, sizeof(m_outputSurface));
// allocate heap
m_veboxInterface->CreateHeap();
MOS_STATUS status = m_veboxInterface->CreateHeap();
if (status != MOS_STATUS_SUCCESS)
{
CODECHAL_DECODE_ASSERTMESSAGE("Failed to CreateHeap.");
}

// create Vebox context
MOS_GPUCTX_CREATOPTIONS createOpts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ MOS_STATUS VeboxCopyState::Initialize()
{
if (m_veboxInterface->m_veboxHeap == nullptr)
{
m_veboxInterface->CreateHeap();
VEBOX_COPY_CHK_STATUS_RETURN(m_veboxInterface->CreateHeap());
}
}
return MOS_STATUS_SUCCESS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ MOS_STATUS MediaVeboxDecompState::Initialize(

if (m_veboxInterface->m_veboxHeap == nullptr)
{
m_veboxInterface->CreateHeap();
VPHAL_MEMORY_DECOMP_CHK_STATUS_RETURN(m_veboxInterface->CreateHeap());
}

#if (_DEBUG || _RELEASE_INTERNAL)
Expand Down

0 comments on commit c8c94f8

Please sign in to comment.