@@ -254,7 +254,7 @@ MOS_STATUS VpRenderHdr3DLutKernel::SetupSurfaceState()
254
254
kernelSurfaceParam.isOutput = false ;
255
255
m_surfaceState.insert (std::make_pair (SurfaceType3DLutCoef, kernelSurfaceParam));
256
256
257
- VP_RENDER_CHK_STATUS_RETURN (InitCoefSurface (m_maxDisplayLum, m_maxContentLevelLum, m_hdrMode, false ));
257
+ VP_RENDER_CHK_STATUS_RETURN (InitCoefSurface (m_maxDisplayLum, m_maxContentLevelLum, m_hdrMode));
258
258
259
259
return MOS_STATUS_SUCCESS;
260
260
}
@@ -360,7 +360,7 @@ MOS_STATUS VpRenderHdr3DLutKernel::GetWalkerSetting(KERNEL_WALKER_PARAMS &walker
360
360
return MOS_STATUS_SUCCESS;
361
361
}
362
362
363
- MOS_STATUS VpRenderHdr3DLutKernel::InitCoefSurface (const uint32_t maxDLL, const uint32_t maxCLL, const VPHAL_HDR_MODE hdrMode, bool needTMCurveChange )
363
+ MOS_STATUS VpRenderHdr3DLutKernel::InitCoefSurface (const uint32_t maxDLL, const uint32_t maxCLL, const VPHAL_HDR_MODE hdrMode)
364
364
{
365
365
VP_FUNC_CALL ();
366
366
float *hdrcoefBuffer = nullptr ;
@@ -389,7 +389,7 @@ MOS_STATUS VpRenderHdr3DLutKernel::InitCoefSurface(const uint32_t maxDLL, const
389
389
{
390
390
CalcCCMMatrix ();
391
391
MOS_SecureMemcpy (ccmMatrix, sizeof (float ) * 12 , color_matrix_calculation, sizeof (float ) * 12 );
392
- if (( maxDLL > 800 ) && needTMCurveChange )
392
+ if (maxDLL > 800 )
393
393
{
394
394
tmMode = (TONE_MAPPING_MODE)TONE_MAPPING_MODE_H2H;
395
395
}
@@ -583,7 +583,7 @@ MOS_STATUS VpRenderHdr3DLutKernelCM::SetupSurfaceState()
583
583
kernelSurfaceParam.isOutput = false ;
584
584
m_surfaceState.insert (std::make_pair (SurfaceType3DLutCoef, kernelSurfaceParam));
585
585
586
- VP_RENDER_CHK_STATUS_RETURN (InitCoefSurface (m_maxDisplayLum, m_maxContentLevelLum, m_hdrMode, true ));
586
+ VP_RENDER_CHK_STATUS_RETURN (InitCoefSurface (m_maxDisplayLum, m_maxContentLevelLum, m_hdrMode));
587
587
588
588
return MOS_STATUS_SUCCESS;
589
589
}
0 commit comments