mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d9] Do not enable support for DF formats on Nvidia
This commit is contained in:
parent
0c2efda804
commit
20185a5309
2 changed files with 8 additions and 2 deletions
|
@ -515,7 +515,9 @@
|
||||||
|
|
||||||
# Support DF formats
|
# Support DF formats
|
||||||
#
|
#
|
||||||
# Support the vendor extension DF floating point depth formats
|
# Support the vendor extension DF floating point depth formats on AMD and Intel.
|
||||||
|
# Note that this config is ignored and disabled by default on Nvidia, or when
|
||||||
|
# spoofing a Nvidia GPU, as it does not support these formats natively.
|
||||||
#
|
#
|
||||||
# Supported values:
|
# Supported values:
|
||||||
# - True/False
|
# - True/False
|
||||||
|
|
|
@ -438,7 +438,11 @@ namespace dxvk {
|
||||||
D3D9VkFormatTable::D3D9VkFormatTable(
|
D3D9VkFormatTable::D3D9VkFormatTable(
|
||||||
const Rc<DxvkAdapter>& adapter,
|
const Rc<DxvkAdapter>& adapter,
|
||||||
const D3D9Options& options) {
|
const D3D9Options& options) {
|
||||||
m_dfSupport = options.supportDFFormats;
|
|
||||||
|
const auto& props = adapter->deviceProperties();
|
||||||
|
uint32_t vendorId = options.customVendorId == -1 ? props.vendorID : uint32_t(options.customVendorId);
|
||||||
|
|
||||||
|
m_dfSupport = options.supportDFFormats && DxvkGpuVendor(vendorId) != DxvkGpuVendor::Nvidia;
|
||||||
m_x4r4g4b4Support = options.supportX4R4G4B4;
|
m_x4r4g4b4Support = options.supportX4R4G4B4;
|
||||||
m_d32supportFinal = options.supportD32;
|
m_d32supportFinal = options.supportD32;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue