Skip to content

Commit

Permalink
[VP] Use 1k1dlut for HDR10.
Browse files Browse the repository at this point in the history
Use 1k1dlut for HDR10 instead of color correction 256 1dlut.
  • Loading branch information
FurongZhang authored and intel-mediadev committed Nov 10, 2023
1 parent a773adb commit bb4187a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1811,7 +1811,7 @@ MOS_STATUS VpResourceManager::AllocateVeboxResource(VP_EXECUTE_CAPS& caps, VP_SU

VP_PUBLIC_CHK_STATUS_RETURN(Allocate3DLut(caps));

if (caps.bDV)
if (caps.bDV || caps.bHDR3DLUT || caps.b3DLutCalc)
{
dwSize = Get1DLutSize();
VP_PUBLIC_CHK_STATUS_RETURN(m_allocator.ReAllocateSurface(
Expand Down Expand Up @@ -2156,7 +2156,7 @@ MOS_STATUS VpResourceManager::AssignVeboxResource(VP_EXECUTE_CAPS& caps, VP_SURF
surfGroup.insert(std::make_pair(SurfaceTypeHVSTable, m_veboxDnHVSTables));
}

if (Vebox1DlutNeeded(caps))
if (Vebox1DlutNeeded(caps) || VeboxHdr3DlutNeeded(caps))
{
// Insert DV 1Dlut surface
surfGroup.insert(std::make_pair(SurfaceType1k1dLut, m_vebox1DLookUpTables));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,7 @@ MOS_STATUS VpVeboxCmdPacket::SetHdrParams(PVEBOX_HDR_PARAMS hdrParams)
VP_PUBLIC_CHK_NULL_RETURN(m_hwInterface->m_osInterface);
VP_PUBLIC_CHK_NULL_RETURN(hdrParams);
VP_RENDER_ASSERT(pRenderData);

MHW_VEBOX_GAMUT_PARAMS &mhwVeboxGamutParams = pRenderData->GetGamutParams();
pOsInterface = m_hwInterface->m_osInterface;
pRenderData->HDR3DLUT.bHdr3DLut = true;
Expand Down Expand Up @@ -1076,6 +1077,9 @@ MOS_STATUS VpVeboxCmdPacket::SetHdrParams(PVEBOX_HDR_PARAMS hdrParams)
mhwVeboxGamutParams.uiMaxCLL = 0;
}

MHW_VEBOX_IECP_PARAMS &mhwVeboxIecpParams = pRenderData->GetIECPParams();
mhwVeboxIecpParams.s3DLutParams.bActive = true;

//Report
if (m_hwInterface->m_reporting)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ class VpVeboxCmdPacket : virtual public VpVeboxCmdPacketBase
mhw::vebox::VEBOX_STATE_PAR &veboxStateCmdParams);
virtual MOS_STATUS Init3DLutTable(PVP_SURFACE surf3DLut);
void UpdateCpPrepareResources();
MOS_STATUS SetupVebox3DLutForHDR(
virtual MOS_STATUS SetupVebox3DLutForHDR(
mhw::vebox::VEBOX_STATE_PAR &veboxStateCmdParams);

private:
Expand Down

0 comments on commit bb4187a

Please sign in to comment.