diff --git a/media_softlet/agnostic/common/vp/hal/packet/vp_render_cmd_packet.cpp b/media_softlet/agnostic/common/vp/hal/packet/vp_render_cmd_packet.cpp index 4cf4dd2b0d9..7a5a0921c55 100644 --- a/media_softlet/agnostic/common/vp/hal/packet/vp_render_cmd_packet.cpp +++ b/media_softlet/agnostic/common/vp/hal/packet/vp_render_cmd_packet.cpp @@ -229,6 +229,7 @@ MOS_STATUS VpRenderCmdPacket::Prepare() VP_RENDER_CHK_NULL_RETURN(m_kernel); m_kernel->SetCacheCntl(m_surfMemCacheCtl); + m_kernel->SetPerfTag(); VP_RENDER_CHK_STATUS_RETURN(SetEuThreadSchedulingMode(m_kernel->GetEuThreadSchedulingMode())); // reset render Data for current kernel diff --git a/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_kernel.cpp b/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_kernel.cpp index 3863482937f..d2c8bb45d3f 100644 --- a/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_kernel.cpp +++ b/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_kernel.cpp @@ -427,6 +427,18 @@ MOS_STATUS VpRenderHdr3DLutKernel::InitCoefSurface(const uint32_t maxDLL, const return MOS_STATUS_SUCCESS; } +MOS_STATUS VpRenderHdr3DLutKernel::SetPerfTag() +{ + VP_FUNC_CALL(); + VP_RENDER_CHK_NULL_RETURN(m_hwInterface); + auto osInterface = m_hwInterface->m_osInterface; + VP_RENDER_CHK_NULL_RETURN(osInterface); + VP_RENDER_CHK_NULL_RETURN(osInterface->pfnSetPerfTag); + + osInterface->pfnSetPerfTag(osInterface, VPHAL_EU3DLUT); + return MOS_STATUS_SUCCESS; +} + VpRenderHdr3DLutKernelCM::VpRenderHdr3DLutKernelCM(PVP_MHWINTERFACE hwInterface, VpKernelID kernelID, uint32_t kernelIndex, PVpAllocator allocator) : VpRenderHdr3DLutKernel(hwInterface, kernelID, kernelIndex, VP_HDR_KERNEL_NAME, allocator) { @@ -636,3 +648,15 @@ MOS_STATUS VpRenderHdr3DLutKernelCM::SetKernelConfigs(KERNEL_CONFIGS& kernelConf return MOS_STATUS_SUCCESS; } + +MOS_STATUS VpRenderHdr3DLutKernelCM::SetPerfTag() +{ + VP_FUNC_CALL(); + VP_RENDER_CHK_NULL_RETURN(m_hwInterface); + auto osInterface = m_hwInterface->m_osInterface; + VP_RENDER_CHK_NULL_RETURN(osInterface); + VP_RENDER_CHK_NULL_RETURN(osInterface->pfnSetPerfTag); + + osInterface->pfnSetPerfTag(osInterface, VPHAL_EU3DLUT); + return MOS_STATUS_SUCCESS; +} \ No newline at end of file diff --git a/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_kernel.h b/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_kernel.h index 1d2fbb9e26f..90afbba1cd9 100644 --- a/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_kernel.h +++ b/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_kernel.h @@ -198,6 +198,7 @@ class VpRenderHdr3DLutKernel : public VpRenderKernelObj } virtual MOS_STATUS GetWalkerSetting(KERNEL_WALKER_PARAMS &walkerParam, KERNEL_PACKET_RENDER_DATA &renderData) override; virtual MOS_STATUS InitCoefSurface(const uint32_t maxDLL, const uint32_t maxCLL, const VPHAL_HDR_MODE hdrMode); + virtual MOS_STATUS SetPerfTag() override; protected: virtual MOS_STATUS SetupSurfaceState() override; @@ -245,6 +246,8 @@ class VpRenderHdr3DLutKernelCM : public VpRenderHdr3DLutKernel virtual MOS_STATUS GetWalkerSetting(KERNEL_WALKER_PARAMS &walkerParam, KERNEL_PACKET_RENDER_DATA &renderData) override; + virtual MOS_STATUS SetPerfTag() override; + protected: virtual MOS_STATUS SetupSurfaceState() override; virtual MOS_STATUS CpPrepareResources() override; diff --git a/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_ocl_kernel.cpp b/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_ocl_kernel.cpp index 0243ff1eeed..a53c0160d0e 100644 --- a/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_ocl_kernel.cpp +++ b/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_ocl_kernel.cpp @@ -524,7 +524,17 @@ MOS_STATUS VpRenderHdr3DLutOclKernel::SetKernelConfigs(KERNEL_CONFIGS &kernelCon return MOS_STATUS_SUCCESS; } +MOS_STATUS VpRenderHdr3DLutOclKernel::SetPerfTag() +{ + VP_FUNC_CALL(); + VP_RENDER_CHK_NULL_RETURN(m_hwInterface); + auto osInterface = m_hwInterface->m_osInterface; + VP_RENDER_CHK_NULL_RETURN(osInterface); + VP_RENDER_CHK_NULL_RETURN(osInterface->pfnSetPerfTag); + osInterface->pfnSetPerfTag(osInterface, VPHAL_OCL_3DLUT); + return MOS_STATUS_SUCCESS; +} MOS_STATUS VpRenderHdr3DLutOclKernel::SetKernelArgs(KERNEL_ARGS &kernelArgs, VP_PACKET_SHARED_CONTEXT *sharedContext) { diff --git a/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_ocl_kernel.h b/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_ocl_kernel.h index c1a5f14f0c0..df74c2de3eb 100644 --- a/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_ocl_kernel.h +++ b/media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hdr_3dlut_ocl_kernel.h @@ -57,6 +57,7 @@ class VpRenderHdr3DLutOclKernel : public VpRenderKernelObj } virtual MOS_STATUS GetWalkerSetting(KERNEL_WALKER_PARAMS &walkerParam, KERNEL_PACKET_RENDER_DATA &renderData) override; virtual MOS_STATUS InitCoefSurface(const uint32_t maxDLL, const uint32_t maxCLL, const VPHAL_HDR_MODE hdrMode); + virtual MOS_STATUS SetPerfTag() override; protected: virtual MOS_STATUS SetupSurfaceState() override;