From 28c9f5f6efb4ccb801a9e15f291cebc08a1bb591 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Sun, 29 Dec 2024 19:41:11 -0700 Subject: [PATCH] nv2a/vk: Load 16b float depth textures as unorm to match surface w/a --- hw/xbox/nv2a/pgraph/vk/constants.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xbox/nv2a/pgraph/vk/constants.h b/hw/xbox/nv2a/pgraph/vk/constants.h index 9ae8ba6dd4..eb7e97dbc0 100644 --- a/hw/xbox/nv2a/pgraph/vk/constants.h +++ b/hw/xbox/nv2a/pgraph/vk/constants.h @@ -287,7 +287,7 @@ static const VkColorFormatInfo kelvin_color_format_vk_map[66] = { { VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_ZERO, VK_COMPONENT_SWIZZLE_ZERO, VK_COMPONENT_SWIZZLE_ZERO }, }, [NV097_SET_TEXTURE_FORMAT_COLOR_LU_IMAGE_DEPTH_Y16_FLOAT] = { - VK_FORMAT_R16_SFLOAT, + VK_FORMAT_R16_UNORM, // FIXME { VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_ZERO, VK_COMPONENT_SWIZZLE_ONE, VK_COMPONENT_SWIZZLE_ZERO }, }, [NV097_SET_TEXTURE_FORMAT_COLOR_LU_IMAGE_Y16] = {