From fb4d79441297811d4fd65f56b89c23b6987316d7 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 22 Dec 2019 01:44:49 +0000 Subject: [PATCH] [d3d9] Use VK_FORMAT_D24_UNORM_S8_UINT for D3DFMT_DF24 May improve performance in some instances --- src/d3d9/d3d9_format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_format.cpp b/src/d3d9/d3d9_format.cpp index 5df3e4d0..9630eb86 100644 --- a/src/d3d9/d3d9_format.cpp +++ b/src/d3d9/d3d9_format.cpp @@ -347,7 +347,7 @@ namespace dxvk { case D3D9Format::INST: return {}; // Driver hack, handled elsewhere case D3D9Format::DF24: return { - VK_FORMAT_D32_SFLOAT, + VK_FORMAT_D24_UNORM_S8_UINT, VK_FORMAT_UNDEFINED, VK_IMAGE_ASPECT_DEPTH_BIT, { VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_ZERO,