Skip to content

Commit

Permalink
Enable ICL VP9 decode frame split.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxye committed Jan 31, 2019
1 parent b8a7911 commit ae81518
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions media_driver/agnostic/gen11/codec/hal/codechal_decode_vp9_g11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ MOS_STATUS CodechalDecodeVp9G11 :: DecodePrimitiveLevel()
submitCommand = CodecHalDecodeScalabilityIsToSubmitCmdBuffer(m_scalabilityState);
}

if (submitCommand)
if (submitCommand || m_osInterface->phasedSubmission)
{
uint32_t renderingFlags = m_videoContextUsesNullHw;

Expand All @@ -852,10 +852,24 @@ MOS_STATUS CodechalDecodeVp9G11 :: DecodePrimitiveLevel()
{
CODECHAL_DECODE_CHK_STATUS_RETURN(SetAndPopulateVEHintParams(&primCmdBuffer));
}
CODECHAL_DECODE_CHK_STATUS_RETURN(m_osInterface->pfnSubmitCommandBuffer(
m_osInterface,
&primCmdBuffer,
renderingFlags));

if (m_osInterface->phasedSubmission
&& MOS_VE_SUPPORTED(m_osInterface)
&& CodecHalDecodeScalabilityIsScalableMode(m_scalabilityState))
{
CodecHalDecodeScalability_DecPhaseToSubmissionType(m_scalabilityState,cmdBufferInUse);
CODECHAL_DECODE_CHK_STATUS_RETURN(m_osInterface->pfnSubmitCommandBuffer(
m_osInterface,
cmdBufferInUse,
renderingFlags));
}
else
{
CODECHAL_DECODE_CHK_STATUS_RETURN(m_osInterface->pfnSubmitCommandBuffer(
m_osInterface,
&primCmdBuffer,
renderingFlags));
}
}

// Reset status report
Expand Down

0 comments on commit ae81518

Please sign in to comment.