[dxgi] Report D3D10 support only when DXVK_FAKE_DX10_SUPPORT is set

Should fix a regression in Assassin's Creed 4: Black Flag.
This commit is contained in:
Philip Rebohle 2018-05-05 00:48:35 +02:00
parent 94b74667e9
commit fe24d76fd0
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 5 additions and 2 deletions

View File

@ -80,7 +80,8 @@ The following environment variables can be used for **debugging** purposes.
- `DXVK_DEBUG_LAYERS=1` Enables Vulkan debug layers. Highly recommended for troubleshooting rendering issues and driver crashes. Requires the Vulkan SDK to be installed and set up within the wine prefix (`winetricks vulkansdk`).
- `DXVK_CUSTOM_VENDOR_ID=<ID>` Specifies a custom PCI vendor ID
- `DXVK_CUSTOM_DEVICE_ID=<ID>` Specifies a custom PCI device ID
- `DXVK_LOG_LEVEL=none|error|warn|info|debug` Controls message logging.
- `DXVK_LOG_LEVEL=none|error|warn|info|debug` Controls message logging
- `DXVK_FAKE_DX10_SUPPORT=1` Advertizes support for D3D10 interfaces
## Troubleshooting
DXVK requires threading support from your mingw-w64 build environment. If you

View File

@ -60,7 +60,9 @@ namespace dxvk {
if (InterfaceName == __uuidof(ID3D10Device)
|| InterfaceName == __uuidof(ID3D10Device1)) {
Logger::warn("DXGI: CheckInterfaceSupport: No D3D10 support");
return S_OK;
if (env::getEnvVar(L"DXVK_FAKE_DX10_SUPPORT") == "1")
return S_OK;
}
Logger::err("DXGI: CheckInterfaceSupport: Unsupported interface");