From e95ff989b1233b58160dc8b0651e5644195eab8e Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 21 Mar 2019 20:44:30 -0700 Subject: [PATCH] Allow DXVA2 renderer blacklists to be bypassed --- app/streaming/video/ffmpeg-renderers/dxva2.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/streaming/video/ffmpeg-renderers/dxva2.cpp b/app/streaming/video/ffmpeg-renderers/dxva2.cpp index ab1a544a..643ff4a5 100644 --- a/app/streaming/video/ffmpeg-renderers/dxva2.cpp +++ b/app/streaming/video/ffmpeg-renderers/dxva2.cpp @@ -332,6 +332,12 @@ bool DXVA2Renderer::isDXVideoProcessorAPIBlacklisted() HRESULT hr; bool result = false; + if (qgetenv("DXVA2_DISABLE_VIDPROC_BLACKLIST") == "1") { + SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, + "IDirectXVideoProcessor blacklist is disabled"); + return false; + } + hr = m_Device->GetDirect3D(&d3d9); if (SUCCEEDED(hr)) { D3DCAPS9 caps; @@ -379,6 +385,12 @@ bool DXVA2Renderer::isDecoderBlacklisted() // TODO: Update for HEVC Main10 SDL_assert(m_VideoFormat != VIDEO_FORMAT_H265_MAIN10); + if (qgetenv("DXVA2_DISABLE_DECODER_BLACKLIST") == "1") { + SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, + "DXVA2 decoder blacklist is disabled"); + return false; + } + hr = m_Device->GetDirect3D(&d3d9); if (SUCCEEDED(hr)) { D3DCAPS9 caps;