Skip to content

Commit

Permalink
Fixed (regresion): Very dark image in HDR10 to SRD conversion using D…
Browse files Browse the repository at this point in the history
…XVA HW tone mapping
  • Loading branch information
thexai committed Dec 24, 2019
1 parent 5a129e5 commit 7bd9d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DXVAHD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,8 @@ bool CProcessorHD::Render(CRect src, CRect dst, ID3D11Resource* target, CRenderB
// makes target available for processing in shaders
videoCtx1->VideoProcessorSetOutputShaderUsage(m_pVideoProcessor.Get(), 1);

if (m_bSupportHDR10 && views[2]->color_transfer == AVCOL_TRC_SMPTE2084 &&
views[2]->primaries == AVCOL_PRI_BT2020)
if (DX::DeviceResources::Get()->Is10BitSwapchain() && m_bSupportHDR10 &&
views[2]->color_transfer == AVCOL_TRC_SMPTE2084 && views[2]->primaries == AVCOL_PRI_BT2020)
{
ComPtr<ID3D11VideoContext2> videoCtx2;
if (SUCCEEDED(m_pVideoContext.As(&videoCtx2)))
Expand Down

0 comments on commit 7bd9d54

Please sign in to comment.