Skip to content

Commit

Permalink
[VP] Change L0 FC Perg Tag
Browse files Browse the repository at this point in the history
Legacy FC perf tag use (layer_number - 1). For example, when it is 2 layer, it shows 1 layer. When it is 4 layers, it shows 3 layer.
Align L0 FC to legacy FC perf tag
  • Loading branch information
peiyigu-intel authored and intel-mediadev committed Sep 24, 2024
1 parent e45a293 commit 35c28c6
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2252,11 +2252,11 @@ MOS_STATUS VpL0FcFilter::SetPerfTag(L0_FC_COMP_PARAM& compParam, VPHAL_PERFTAG&
}
if (rotation)
{
perfTag = VPHAL_PERFTAG(VPHAL_ROT + compParam.layerNumber);
perfTag = VPHAL_PERFTAG(VPHAL_ROT + compParam.layerNumber - 1);
}
else if (primary)
{
perfTag = VPHAL_PERFTAG(VPHAL_PRI + compParam.layerNumber);
perfTag = VPHAL_PERFTAG(VPHAL_PRI + compParam.layerNumber - 1);
}
else
{
Expand Down Expand Up @@ -2513,6 +2513,12 @@ void VpL0FcFilter::ReportDiffLog(const L0_FC_COMP_PARAM &compParam)
//fixed alpha not used in legacy FC
reportLog |= (1llu << 7);
}

if (format == Format_R5G6B5)
{
//legacy FC will drop (16 - 5/6/5) of LSB
reportLog |= (1llu << 8);
}
}
}
if (FastExpressConditionMeet(compParam))
Expand Down

0 comments on commit 35c28c6

Please sign in to comment.