mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-18 02:22:52 +00:00
Allow DXVA2 renderer blacklists to be bypassed
This commit is contained in:
parent
018e8999e2
commit
e95ff989b1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user