Skip to content

Commit

Permalink
[dxgi] Report D3D10 support only when DXVK_FAKE_DX10_SUPPORT is set
Browse files Browse the repository at this point in the history
Should fix a regression in Assassin's Creed 4: Black Flag.
  • Loading branch information
doitsujin committed May 4, 2018
1 parent 94b7466 commit fe24d76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/dxgi/dxgi_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit fe24d76

Please sign in to comment.