-
Notifications
You must be signed in to change notification settings - Fork 156
Description
I have a DXVK trace from a Unity title
I captured with ToT, and replayed back with 1.4.328 SDK and I get the SRGB discoloration that I think @fabian-lunarg fixed in #2438 and I'm now using ToT dev to replay... when I replay I get the Validation Layer error (for both)
[gfxrecon] ERROR - DEBUG MESSENGER: Frame #3208: VUID-vkCmdDrawMultiIndexedEXT-None-06479: vkCmdDrawMultiIndexedEXT(): the sampled image descriptor [VkDescriptorSet 0x33f1e0000033f1e, Set 1, Binding 3, Index 0, variable "t3"] has VkImageView 0x33dc60000033dc6 with format of VK_FORMAT_R8G8B8A8_SRGB which doesn't support VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT.
(supported features: VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_BIT|VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BIT|VK_FORMAT_FEATURE_2_COLOR_ATTACHMENT_BLEND_BIT|VK_FORMAT_FEATURE_2_BLIT_SRC_BIT|VK_FORMAT_FEATURE_2_BLIT_DST_BIT|VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_LINEAR_BIT|VK_FORMAT_FEATURE_2_TRANSFER_SRC_BIT|VK_FORMAT_FEATURE_2_TRANSFER_DST_BIT|VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_FILTER_MINMAX_BIT).
The Vulkan spec states: If a VkImageView is sampled with depth comparison, the image view's format features must contain VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT (https://docs.vulkan.org/spec/latest/chapters/drawing.html#VUID-vkCmdDrawMultiIndexedEXT-None-06479)
I confirmed by adding VVL to the original content, that there was not validation error message prior, so seems GFXReconstruct is applying this issue
tracking things, seem the original content only uses VK_FORMAT_R8G8B8A8_UNORM and the trace/replay is adding VK_FORMAT_R8G8B8A8_SRGB to it