mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-02 15:55:39 +00:00
Remove FL 11.0 restriction for D3D11VA
This commit is contained in:
parent
99311403fa
commit
7074463d0f
@ -155,7 +155,10 @@ D3D11VARenderer::~D3D11VARenderer()
|
|||||||
|
|
||||||
bool D3D11VARenderer::createDeviceByAdapterIndex(int adapterIndex, bool* adapterNotFound)
|
bool D3D11VARenderer::createDeviceByAdapterIndex(int adapterIndex, bool* adapterNotFound)
|
||||||
{
|
{
|
||||||
const D3D_FEATURE_LEVEL supportedFeatureLevels[] = { D3D_FEATURE_LEVEL_11_1, D3D_FEATURE_LEVEL_11_0 };
|
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 };
|
||||||
bool success = false;
|
bool success = false;
|
||||||
ComPtr<IDXGIAdapter1> adapter;
|
ComPtr<IDXGIAdapter1> adapter;
|
||||||
DXGI_ADAPTER_DESC1 adapterDesc;
|
DXGI_ADAPTER_DESC1 adapterDesc;
|
||||||
@ -231,13 +234,6 @@ bool D3D11VARenderer::createDeviceByAdapterIndex(int adapterIndex, bool* adapter
|
|||||||
hr);
|
hr);
|
||||||
goto Exit;
|
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) {
|
else if (featureLevel >= D3D_FEATURE_LEVEL_11_0) {
|
||||||
// Remember that we found a non-software D3D11 devices with support for
|
// 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)
|
// feature level 11.0 or later (Fermi, Terascale 2, or Ivy Bridge and later)
|
||||||
@ -823,7 +819,6 @@ void D3D11VARenderer::renderVideo(AVFrame* frame)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Ensure decoding operations have completed using a dummy fence.
|
// Ensure decoding operations have completed using a dummy fence.
|
||||||
// This is not necessary on modern GPU drivers, but it is required
|
// This is not necessary on modern GPU drivers, but it is required
|
||||||
// on some older GPU drivers that don't properly synchronize the
|
// on some older GPU drivers that don't properly synchronize the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user