mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-10 13:44:17 +00:00
Allow DXVA2 renderer blacklists to be bypassed
This commit is contained in:
parent
018e8999e2
commit
e95ff989b1
1 changed files with 12 additions and 0 deletions
|
@ -332,6 +332,12 @@ bool DXVA2Renderer::isDXVideoProcessorAPIBlacklisted()
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
bool result = false;
|
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);
|
hr = m_Device->GetDirect3D(&d3d9);
|
||||||
if (SUCCEEDED(hr)) {
|
if (SUCCEEDED(hr)) {
|
||||||
D3DCAPS9 caps;
|
D3DCAPS9 caps;
|
||||||
|
@ -379,6 +385,12 @@ bool DXVA2Renderer::isDecoderBlacklisted()
|
||||||
// TODO: Update for HEVC Main10
|
// TODO: Update for HEVC Main10
|
||||||
SDL_assert(m_VideoFormat != VIDEO_FORMAT_H265_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);
|
hr = m_Device->GetDirect3D(&d3d9);
|
||||||
if (SUCCEEDED(hr)) {
|
if (SUCCEEDED(hr)) {
|
||||||
D3DCAPS9 caps;
|
D3DCAPS9 caps;
|
||||||
|
|
Loading…
Reference in a new issue