Skip to content

Commit

Permalink
Revert "[CP] Add OCA param dumper"
Browse files Browse the repository at this point in the history
This reverts commit 7fa0ebe.
Change-Id: Ife3dcf7b8a911516e5f90556a2e1324b2920bc6f
  • Loading branch information
hanlong1 authored and intel-mediadev committed Feb 12, 2020
1 parent 7fa0ebe commit c78ee08
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 58 deletions.
13 changes: 0 additions & 13 deletions media_driver/agnostic/common/renderhal/hal_oca_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,19 +197,6 @@ class HalOcaInterface
//!
static void DumpVphalParam(MOS_COMMAND_BUFFER &cmdBuffer, MOS_CONTEXT &mosContext, void *pVphalDumper);

//!
//! \brief Add cp parameters to oca log section.
//! \param [in] cmdBuffer
//! Command buffer for current BB.
//! \param [in] mosContext
//! Reference to MOS_CONTEXT.
//! \param [in] pCpDumper
//! Pointer to cp dumper object.
//! \return void
//! No return value. Handle all exception inside the function.
//!
static void DumpCpParam(MOS_COMMAND_BUFFER &cmdBuffer, MOS_CONTEXT &mosContext, void *pCpDumper);

private:
//!
//! \brief Error handle function.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1049,19 +1049,11 @@ MOS_STATUS CodechalDecodeVp9G12 :: DecodePrimitiveLevel()
bool submitCommand = true;
if (MOS_VE_SUPPORTED(m_osInterface) && CodecHalDecodeScalabilityIsScalableMode(m_scalabilityState))
{
if (m_osInterface->osCpInterface->IsHMEnabled())
{
HalOcaInterface::DumpCpParam(scdryCmdBuffer, *m_osInterface->pOsContext, m_osInterface->osCpInterface->GetOcaDumper());
}
submitCommand = CodecHalDecodeScalabilityIsToSubmitCmdBuffer_G12(m_scalabilityState);
HalOcaInterface::On1stLevelBBEnd(scdryCmdBuffer, *m_osInterface->pOsContext);
}
else
{
if (m_osInterface->osCpInterface->IsHMEnabled())
{
HalOcaInterface::DumpCpParam(primCmdBuffer, *m_osInterface->pOsContext, m_osInterface->osCpInterface->GetOcaDumper());
}
HalOcaInterface::On1stLevelBBEnd(primCmdBuffer, *m_osInterface->pOsContext);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -737,11 +737,6 @@ MOS_STATUS CodechalVdencAvcStateG12::SubmitCommandBuffer(

CODECHAL_ENCODE_CHK_NULL_RETURN(cmdBuffer);

if (m_osInterface->osCpInterface->IsHMEnabled())
{
HalOcaInterface::DumpCpParam(*cmdBuffer, *m_osInterface->pOsContext, m_osInterface->osCpInterface->GetOcaDumper());
}

HalOcaInterface::On1stLevelBBEnd(*cmdBuffer, *m_osInterface->pOsContext);
CODECHAL_ENCODE_CHK_STATUS_RETURN(SetAndPopulateVEHintParams(cmdBuffer));
CODECHAL_ENCODE_CHK_STATUS_RETURN(m_osInterface->pfnSubmitCommandBuffer(m_osInterface, cmdBuffer, nullRendering));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "vphal_render_vebox_memdecomp_g12.h"
#include "mhw_vebox_hwcmd_g12_X.h"
#include "mhw_vebox_g12_X.h"
#include "hal_oca_interface.h"

MediaVeboxDecompStateG12::MediaVeboxDecompStateG12() :
MediaVeboxDecompState()
Expand All @@ -45,8 +44,6 @@ MOS_STATUS MediaVeboxDecompStateG12::RenderDecompCMD(PMOS_SURFACE surface)
MHW_MI_FLUSH_DW_PARAMS flushDwParams;
uint32_t streamID = 0;
const MHW_VEBOX_HEAP *veboxHeap = nullptr;
MOS_CONTEXT * pOsContext = nullptr;
PMHW_MI_MMIOREGISTERS pMmioRegisters = nullptr;

VPHAL_MEMORY_DECOMP_CHK_NULL_RETURN(surface);

Expand All @@ -66,9 +63,6 @@ MOS_STATUS MediaVeboxDecompStateG12::RenderDecompCMD(PMOS_SURFACE surface)

veboxInterface = m_veboxInterface;

pOsContext = m_osInterface->pOsContext;
pMmioRegisters = m_mhwMiInterface->GetMmioRegisters();

m_osInterface->pfnSetGpuContext(m_osInterface, MOS_GPU_CONTEXT_VEBOX);

// Reset allocation list and house keeping
Expand All @@ -92,9 +86,6 @@ MOS_STATUS MediaVeboxDecompStateG12::RenderDecompCMD(PMOS_SURFACE surface)
MOS_ZeroMemory(&cmdBuffer, sizeof(MOS_COMMAND_BUFFER));

VPHAL_MEMORY_DECOMP_CHK_STATUS_RETURN(m_osInterface->pfnGetCommandBuffer(m_osInterface, &cmdBuffer, 0));

HalOcaInterface::On1stLevelBBStart(cmdBuffer, *pOsContext, m_osInterface->CurrentGpuContextHandle, *m_mhwMiInterface, *pMmioRegisters);

VPHAL_MEMORY_DECOMP_CHK_STATUS_RETURN(InitCommandBuffer(&cmdBuffer));

// Prepare Vebox_Surface_State, surface input/and output are the same but the compressed status.
Expand Down Expand Up @@ -139,13 +130,6 @@ MOS_STATUS MediaVeboxDecompStateG12::RenderDecompCMD(PMOS_SURFACE surface)
&flushDwParams));
}

if (m_osInterface->osCpInterface->IsHMEnabled())
{
HalOcaInterface::DumpCpParam(cmdBuffer, *pOsContext, m_osInterface->osCpInterface->GetOcaDumper());
}

HalOcaInterface::On1stLevelBBEnd(cmdBuffer, *pOsContext);

VPHAL_MEMORY_DECOMP_CHK_STATUS_RETURN(m_mhwMiInterface->AddMiBatchBufferEnd(
&cmdBuffer,
nullptr));
Expand Down
12 changes: 0 additions & 12 deletions media_driver/linux/common/cp/os/mos_os_cp_interface_specific.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,18 +194,6 @@ class MosCpInterface
OsStubMessage();
return MOS_STATUS_UNIMPLEMENTED;
}

void *GetOcaDumper()
{
OsStubMessage();
return nullptr;
}

MOS_STATUS CreateOcaDumper()
{
OsStubMessage();
return MOS_STATUS_SUCCESS;
}
};

//!
Expand Down
4 changes: 0 additions & 4 deletions media_driver/linux/common/renderhal/hal_oca_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,6 @@ void HalOcaInterface::DumpVphalParam(MOS_COMMAND_BUFFER &cmdBuffer, MOS_CONTEXT
{
}

void HalOcaInterface::DumpCpParam(MOS_COMMAND_BUFFER &cmdBuffer, MOS_CONTEXT &mosContext, void *pCpDumper)
{
}

void HalOcaInterface::OnOcaError(MOS_STATUS status, const char *functionName, uint32_t lineNumber)
{
}
Expand Down

0 comments on commit c78ee08

Please sign in to comment.