[dxgi] Remove useless d3d10.enable option

This commit is contained in:
Philip Rebohle 2019-10-19 00:34:34 +02:00
parent ad3542f4fc
commit 7a0360d7c2
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
4 changed files with 3 additions and 18 deletions

View File

@ -63,13 +63,6 @@
# dxgi.syncInterval = -1
# Enables or dsables d3d10 support.
#
# Supported values: True, False
# d3d10.enable = True
# Handle D3D11_MAP_FLAG_DO_NOT_WAIT correctly when D3D11DeviceContext::Map()
# is called. Enabling this can potentially improve performance, but breaks
# games which do not expect Map() to return an error despite using the flag.

View File

@ -108,15 +108,11 @@ namespace dxvk {
LARGE_INTEGER* pUMDVersion) {
HRESULT hr = DXGI_ERROR_UNSUPPORTED;
if (InterfaceName == __uuidof(IDXGIDevice))
if (InterfaceName == __uuidof(IDXGIDevice)
|| InterfaceName == __uuidof(ID3D10Device)
|| InterfaceName == __uuidof(ID3D10Device1))
hr = S_OK;
if (m_factory->GetOptions()->d3d10Enable) {
if (InterfaceName == __uuidof(ID3D10Device)
|| InterfaceName == __uuidof(ID3D10Device1))
hr = S_OK;
}
// We can't really reconstruct the version numbers
// returned by Windows drivers from Vulkan data
if (SUCCEEDED(hr) && pUMDVersion)

View File

@ -36,7 +36,6 @@ namespace dxvk {
this->maxDeviceMemory = VkDeviceSize(config.getOption<int32_t>("dxgi.maxDeviceMemory", 0)) << 20;
this->maxSharedMemory = VkDeviceSize(config.getOption<int32_t>("dxgi.maxSharedMemory", 0)) << 20;
this->d3d10Enable = config.getOption<bool>("d3d10.enable", true);
this->nvapiHack = config.getOption<bool>("dxgi.nvapiHack", true);
}

View File

@ -29,9 +29,6 @@ namespace dxvk {
VkDeviceSize maxDeviceMemory;
VkDeviceSize maxSharedMemory;
/// Enables D3D10 support
bool d3d10Enable;
/// Enables nvapi workaround
bool nvapiHack;
};