diff options
author | thexai <58434170+thexai@users.noreply.github.com> | 2023-06-18 11:41:11 +0200 |
---|---|---|
committer | thexai <58434170+thexai@users.noreply.github.com> | 2023-06-18 11:41:11 +0200 |
commit | ec22a3ba01f2079b2c2bea9f85bd3f0af769a530 (patch) | |
tree | 636b1c00ea24472e51ac8a902e7b515c189dd199 | |
parent | 8f774d10a07b14de5dd9f9984c4e77058bc4e185 (diff) |
[Windows] Remove workaround for Video Super Resolution
Seems vertical shift is fixed with NVIDIA driver 536.23
-rw-r--r-- | xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DXVAHD.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DXVAHD.cpp b/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DXVAHD.cpp index a88902bc3c..8a7ba0a9d0 100644 --- a/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DXVAHD.cpp +++ b/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/DXVAHD.cpp @@ -753,11 +753,7 @@ bool CProcessorHD::Render(CRect src, CRect dst, ID3D11Resource* target, CRenderB // Stream dest rect m_pVideoContext->VideoProcessorSetStreamDestRect(m_pVideoProcessor.Get(), DEFAULT_STREAM_INDEX, TRUE, &dstRECT); // Output rect - // Disabled when using Video Super Resolution because it causes vertical shift of a few pixels. - // Tested with RTX 4070 and NVIDIA driver 535.98. It doesn't seem to happen with Intel i7-13700K. - // ToDo: retest with future NVIDIA drivers and eventually remove this workaround. - m_pVideoContext->VideoProcessorSetOutputTargetRect( - m_pVideoProcessor.Get(), m_superResolutionEnabled ? FALSE : TRUE, &dstRECT); + m_pVideoContext->VideoProcessorSetOutputTargetRect(m_pVideoProcessor.Get(), TRUE, &dstRECT); ComPtr<ID3D11VideoContext1> videoCtx1; if (SUCCEEDED(m_pVideoContext.As(&videoCtx1))) @@ -1280,7 +1276,7 @@ void CProcessorHD::EnableIntelVideoSuperResolution() return; } - CLog::LogF(LOGINFO, "Intel Video Super Resolution enabled successfully"); + CLog::LogF(LOGINFO, "Intel Video Super Resolution request enable successfully"); m_superResolutionEnabled = true; } @@ -1304,6 +1300,6 @@ void CProcessorHD::EnableNvidiaRTXVideoSuperResolution() return; } - CLog::LogF(LOGINFO, "RTX Video Super Resolution enabled successfully"); + CLog::LogF(LOGINFO, "RTX Video Super Resolution request enable successfully"); m_superResolutionEnabled = true; } |