mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-29 10:24:10 +01:00
[d3d9] Fix DF Formats selection logic
This commit is contained in:
parent
b03de97f1b
commit
5ae3cfe402
@ -442,7 +442,8 @@ namespace dxvk {
|
||||
const auto& props = adapter->deviceProperties();
|
||||
uint32_t vendorId = options.customVendorId == -1 ? props.vendorID : uint32_t(options.customVendorId);
|
||||
|
||||
m_dfSupport = options.supportDFFormats;
|
||||
// NVIDIA does not natively support any DF formats
|
||||
m_dfSupport = vendorId == uint32_t(DxvkGpuVendor::Nvidia) ? false : options.supportDFFormats;
|
||||
m_x4r4g4b4Support = options.supportX4R4G4B4;
|
||||
// Only AMD supports D16_LOCKABLE natively
|
||||
m_d16lockableSupport = vendorId == uint32_t(DxvkGpuVendor::Amd) ? true : options.supportD16Lockable;
|
||||
|
@ -53,7 +53,7 @@ namespace dxvk {
|
||||
this->deferSurfaceCreation = config.getOption<bool> ("d3d9.deferSurfaceCreation", false);
|
||||
this->samplerAnisotropy = config.getOption<int32_t> ("d3d9.samplerAnisotropy", -1);
|
||||
this->maxAvailableMemory = config.getOption<int32_t> ("d3d9.maxAvailableMemory", 4096);
|
||||
this->supportDFFormats = config.getOption<bool> ("d3d9.supportDFFormats", vendorId != uint32_t(DxvkGpuVendor::Nvidia));
|
||||
this->supportDFFormats = config.getOption<bool> ("d3d9.supportDFFormats", true);
|
||||
this->supportX4R4G4B4 = config.getOption<bool> ("d3d9.supportX4R4G4B4", true);
|
||||
this->supportD16Lockable = config.getOption<bool> ("d3d9.supportD16Lockable", false);
|
||||
this->useD32forD24 = config.getOption<bool> ("d3d9.useD32forD24", false);
|
||||
|
Loading…
Reference in New Issue
Block a user