mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-10 05:34:17 +00:00
Revert "Remove FL 11.0 restriction for D3D11VA"
Even with a fix for the Intel IVB rendering issue, there are still problems on
other older cards that make it not really worth it to enable D3D11VA.
The big benefit of D3D11VA is independent flip in windowed mode using
overlays and that isn't supported on those old cards anyway.
This reverts commit 7074463d0f
.
This commit is contained in:
parent
67e89d9e16
commit
6ec0c79899
1 changed files with 9 additions and 4 deletions
|
@ -155,10 +155,7 @@ D3D11VARenderer::~D3D11VARenderer()
|
|||
|
||||
bool D3D11VARenderer::createDeviceByAdapterIndex(int adapterIndex, bool* adapterNotFound)
|
||||
{
|
||||
const D3D_FEATURE_LEVEL supportedFeatureLevels[] = { D3D_FEATURE_LEVEL_11_1,
|
||||
D3D_FEATURE_LEVEL_11_0,
|
||||
D3D_FEATURE_LEVEL_10_1,
|
||||
D3D_FEATURE_LEVEL_10_0 };
|
||||
const D3D_FEATURE_LEVEL supportedFeatureLevels[] = { D3D_FEATURE_LEVEL_11_1, D3D_FEATURE_LEVEL_11_0 };
|
||||
bool success = false;
|
||||
ComPtr<IDXGIAdapter1> adapter;
|
||||
DXGI_ADAPTER_DESC1 adapterDesc;
|
||||
|
@ -220,6 +217,13 @@ bool D3D11VARenderer::createDeviceByAdapterIndex(int adapterIndex, bool* adapter
|
|||
hr);
|
||||
goto Exit;
|
||||
}
|
||||
else if (adapterDesc.VendorId == 0x8086 && featureLevel <= D3D_FEATURE_LEVEL_11_0 && !qEnvironmentVariableIntValue("D3D11VA_ENABLED")) {
|
||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Avoiding D3D11VA on old pre-FL11.1 Intel GPU. Set D3D11VA_ENABLED=1 to override.");
|
||||
m_DeviceContext.Reset();
|
||||
m_Device.Reset();
|
||||
goto Exit;
|
||||
}
|
||||
else if (featureLevel >= D3D_FEATURE_LEVEL_11_0) {
|
||||
// Remember that we found a non-software D3D11 devices with support for
|
||||
// feature level 11.0 or later (Fermi, Terascale 2, or Ivy Bridge and later)
|
||||
|
@ -846,6 +850,7 @@ void D3D11VARenderer::renderVideo(AVFrame* frame)
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
// Ensure decoding operations have completed using a dummy fence.
|
||||
// This is not necessary on modern GPU drivers, but it is required
|
||||
// on some older Intel GPU drivers that don't properly synchronize
|
||||
|
|
Loading…
Reference in a new issue