Allow DXVA2 renderer blacklists to be bypassed

This commit is contained in:
Cameron Gutman 2019-03-21 20:44:30 -07:00
parent 018e8999e2
commit e95ff989b1

View file

@ -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;