mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 07:15:27 +00:00
parent
2aea070d93
commit
8e2aa87c4f
@ -155,7 +155,7 @@ D3D11VARenderer::~D3D11VARenderer()
|
||||
|
||||
bool D3D11VARenderer::createDeviceByAdapterIndex(int adapterIndex, bool* adapterNotFound)
|
||||
{
|
||||
const D3D_FEATURE_LEVEL supportedFeatureLevels[] = { D3D_FEATURE_LEVEL_11_0, D3D_FEATURE_LEVEL_11_1 };
|
||||
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;
|
||||
@ -231,6 +231,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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user