Skip to content

Commit

Permalink
[d3d9] Remove vestigial D32 support
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterSnowfall authored and misyltoad committed Jul 5, 2024
1 parent 1783b95 commit 1803582
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 22 deletions.
9 changes: 0 additions & 9 deletions dxvk.conf
Original file line number Diff line number Diff line change
Expand Up @@ -570,15 +570,6 @@

# d3d9.supportX4R4G4B4 = True

# Support D32
#
# Support the D32 format.
#
# Supported values:
# - True/False

# d3d9.supportD32 = True

# Disable A8 as a Render Target
#
# Disable support for A8 format render targets
Expand Down
4 changes: 0 additions & 4 deletions src/d3d9/d3d9_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ namespace dxvk {
const D3D9Options& options) {
m_dfSupport = options.supportDFFormats;
m_x4r4g4b4Support = options.supportX4R4G4B4;
m_d32supportFinal = options.supportD32;

// AMD do not support 24-bit depth buffers on Vulkan,
// so we have to fall back to a 32-bit depth format.
Expand Down Expand Up @@ -478,9 +477,6 @@ namespace dxvk {

if (Format == D3D9Format::DF24 && !m_dfSupport)
return D3D9_VK_FORMAT_MAPPING();

if (Format == D3D9Format::D32 && !m_d32supportFinal)
return D3D9_VK_FORMAT_MAPPING();

if (!m_d24s8Support && mapping.FormatColor == VK_FORMAT_D24_UNORM_S8_UINT)
mapping.FormatColor = mapping.Aspect & VK_IMAGE_ASPECT_STENCIL_BIT ? VK_FORMAT_D32_SFLOAT_S8_UINT : VK_FORMAT_D32_SFLOAT;
Expand Down
1 change: 0 additions & 1 deletion src/d3d9/d3d9_format.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ namespace dxvk {

bool m_dfSupport;
bool m_x4r4g4b4Support;
bool m_d32supportFinal;
};

inline bool IsFourCCFormat(D3D9Format format) {
Expand Down
1 change: 0 additions & 1 deletion src/d3d9/d3d9_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ namespace dxvk {
this->maxAvailableMemory = config.getOption<int32_t> ("d3d9.maxAvailableMemory", 4096);
this->supportDFFormats = config.getOption<bool> ("d3d9.supportDFFormats", vendorId != uint32_t(DxvkGpuVendor::Nvidia));
this->supportX4R4G4B4 = config.getOption<bool> ("d3d9.supportX4R4G4B4", true);
this->supportD32 = config.getOption<bool> ("d3d9.supportD32", true);
this->useD32forD24 = config.getOption<bool> ("d3d9.useD32forD24", false);
this->disableA8RT = config.getOption<bool> ("d3d9.disableA8RT", false);
this->invariantPosition = config.getOption<bool> ("d3d9.invariantPosition", true);
Expand Down
3 changes: 0 additions & 3 deletions src/d3d9/d3d9_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ namespace dxvk {
/// Support X4R4G4B4
bool supportX4R4G4B4;

/// Support D32
bool supportD32;

/// Use D32f for D24
bool useD32forD24;

Expand Down
4 changes: 0 additions & 4 deletions src/util/config/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,10 +555,6 @@ namespace dxvk {
{ R"(\\SKShinoviVersus\.exe$)", {{
{ "d3d9.forceAspectRatio", "16:9" },
}} },
/* Metal Slug X */
{ R"(\\mslugx\.exe$)", {{
{ "d3d9.supportD32", "False" },
}} },
/* Skyrim (NVAPI) */
{ R"(\\TESV\.exe$)", {{
{ "d3d9.customVendorId", "1002" },
Expand Down

0 comments on commit 1803582

Please sign in to comment.