Skip to content

Commit

Permalink
[Encode] Add platform support for mhw::CmdOpcodes class
Browse files Browse the repository at this point in the history
Add platform support for mhw::CmdOpcodes class.
  • Loading branch information
walter-bai authored and intel-mediadev committed Nov 13, 2023
1 parent 5520656 commit 777c74e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions media_driver/agnostic/common/codec/hal/codechal_vdenc_avc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6340,7 +6340,7 @@ MOS_STATUS CodechalVdencAvcState::ExecutePictureLevel()
auto instance = mhw::HwcmdParser::GetInstance();
if (instance)
{
instance->ParseCmdBuf((uint32_t *)(secondLevelBatchBufferUsed->pData),
instance->ParseCmdBuf(IGFX_UNKNOWN, (uint32_t *)(secondLevelBatchBufferUsed->pData),
secondLevelBatchBufferUsed->iCurrent / sizeof(uint32_t));
}
#endif
Expand Down Expand Up @@ -6684,7 +6684,7 @@ MOS_STATUS CodechalVdencAvcState::ExecuteSliceLevel()
auto instance = mhw::HwcmdParser::GetInstance();
if (instance)
{
instance->ParseCmdBuf(cmdBuffer.pCmdBase, cmdBuffer.iOffset / sizeof(uint32_t));
instance->ParseCmdBuf(IGFX_UNKNOWN, cmdBuffer.pCmdBase, cmdBuffer.iOffset / sizeof(uint32_t));
}
#endif
m_osInterface->pfnReturnCommandBuffer(m_osInterface, &cmdBuffer, 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ namespace encode
auto instance = mhw::HwcmdParser::GetInstance();
if (instance)
{
instance->ParseCmdBuf(cmdBuffer.pCmdBase, cmdBuffer.iOffset / sizeof(uint32_t));
instance->ParseCmdBuf(IGFX_UNKNOWN, cmdBuffer.pCmdBase, cmdBuffer.iOffset / sizeof(uint32_t));
}
#endif
#if USE_CODECHAL_DEBUG_TOOL
Expand Down Expand Up @@ -476,7 +476,7 @@ namespace encode
auto instance = mhw::HwcmdParser::GetInstance();
if (instance)
{
instance->ParseCmdBuf(tempCmdBuffer->pCmdBase, tempCmdBuffer->iOffset / sizeof(uint32_t));
instance->ParseCmdBuf(IGFX_UNKNOWN, tempCmdBuffer->pCmdBase, tempCmdBuffer->iOffset / sizeof(uint32_t));
}
#endif

Expand Down

0 comments on commit 777c74e

Please sign in to comment.