[GH-ISSUE #422] [SOLVED] Regression: VkImage crashes on main branch #77

Closed
opened 2026-02-27 21:04:26 +03:00 by kerem · 5 comments
Owner

Originally created by @shiiironyanpan on GitHub (Aug 13, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/422

Tested with Megadimension Neptunia VII (this game wasn't launching until surface_works3 launched it) , here's the log with validation enabled

image-15

Neptunia shad_log.txt

Also crashed on Red Dead Redemption which launched before (not my log)

[Render.Vulkan] <Error> vk_platform.cpp:DebugUtilsCallback:59: VUID-vkCmdDraw-None-06479: Validation Error: [ VUID-vkCmdDraw-None-06479 ] Object 0: handle = 0xf582f600000001d8, type = VK_OBJECT_TYPE_IMAGE_VIEW; | MessageID = 0x4b9d1597 | vkCmdDraw(): the descriptor VkDescriptorSet 0x0[] [Set 0, Binding 6, Index 0, variable "fs_img12_08"] has VkImageView 0xf582f600000001d8[] with format of VK_FORMAT_R32_SFLOAT which doesn't support VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT in. i(supported features: VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_BIT|VK_FORMAT_FEATURE_2_STORAGE_IMAGE_BIT|VK_FORMAT_FEATURE_2_STORAGE_IMAGE_ATOMIC_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|VK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT|VK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT|VK_FORMAT_FEATURE_2_HOST_IMAGE_TRANSFER_BIT_EXT). 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://vulkan.lunarg.com/doc/view/1.3.290.0/windows/1.3-extensions/vkspec.html#VUID-vkCmdDraw-None-06479)

RDR shad_log.txt

Originally created by @shiiironyanpan on GitHub (Aug 13, 2024). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/422 Tested with Megadimension Neptunia VII (this game wasn't launching until surface_works3 launched it) , here's the log with validation enabled ![image-15](https://github.com/user-attachments/assets/a624755e-3f23-4973-b885-56332b6607f4) [Neptunia shad_log.txt](https://github.com/user-attachments/files/16596650/shad_log.txt) Also crashed on Red Dead Redemption which launched before (not my log) `[Render.Vulkan] <Error> vk_platform.cpp:DebugUtilsCallback:59: VUID-vkCmdDraw-None-06479: Validation Error: [ VUID-vkCmdDraw-None-06479 ] Object 0: handle = 0xf582f600000001d8, type = VK_OBJECT_TYPE_IMAGE_VIEW; | MessageID = 0x4b9d1597 | vkCmdDraw(): the descriptor VkDescriptorSet 0x0[] [Set 0, Binding 6, Index 0, variable "fs_img12_08"] has VkImageView 0xf582f600000001d8[] with format of VK_FORMAT_R32_SFLOAT which doesn't support VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT in. i(supported features: VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_BIT|VK_FORMAT_FEATURE_2_STORAGE_IMAGE_BIT|VK_FORMAT_FEATURE_2_STORAGE_IMAGE_ATOMIC_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|VK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT|VK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT|VK_FORMAT_FEATURE_2_HOST_IMAGE_TRANSFER_BIT_EXT). 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://vulkan.lunarg.com/doc/view/1.3.290.0/windows/1.3-extensions/vkspec.html#VUID-vkCmdDraw-None-06479) ` [RDR shad_log.txt](https://github.com/user-attachments/files/16596687/shad_log.txt)
kerem closed this issue 2026-02-27 21:04:27 +03:00
Author
Owner

@shiiironyanpan commented on GitHub (Aug 13, 2024):

Looking for confirmation from more people. If anyone wants to confirm this crash on RDR1, you need to install Vulkan SDK first then enable validation (NOT validation sync)

<!-- gh-comment-id:2285695539 --> @shiiironyanpan commented on GitHub (Aug 13, 2024): Looking for confirmation from more people. If anyone wants to confirm this crash on RDR1, you need to install Vulkan SDK first then enable validation (NOT validation sync)
Author
Owner

@bigol83 commented on GitHub (Aug 14, 2024):

It seems that PR https://github.com/shadps4-emu/shadPS4/pull/431 fixes the crash issue in Red Dead Redemption for me.

<!-- gh-comment-id:2289884194 --> @bigol83 commented on GitHub (Aug 14, 2024): It seems that PR https://github.com/shadps4-emu/shadPS4/pull/431 fixes the crash issue in Red Dead Redemption for me.
Author
Owner

@shiiironyanpan commented on GitHub (Aug 15, 2024):

Unfortunately Megadimension Neptunia VII still isn't fixed, however, there is different error printed
shad_log.txt

<!-- gh-comment-id:2290645610 --> @shiiironyanpan commented on GitHub (Aug 15, 2024): Unfortunately Megadimension Neptunia VII still isn't fixed, however, there is different error printed [shad_log.txt](https://github.com/user-attachments/files/16621717/shad_log.txt)
Author
Owner

@Hermiten commented on GitHub (Sep 4, 2024):

So maybe can be close ? because it's a new issue

<!-- gh-comment-id:2328210509 --> @Hermiten commented on GitHub (Sep 4, 2024): So maybe can be close ? because it's a new issue
Author
Owner

@shiiironyanpan commented on GitHub (Sep 4, 2024):

So maybe can be close ? because it's a new issue

I completely forgot about this lol, closing as this is solved

<!-- gh-comment-id:2329391986 --> @shiiironyanpan commented on GitHub (Sep 4, 2024): > So maybe can be close ? because it's a new issue I completely forgot about this lol, closing as this is solved
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#77
No description provided.