Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulkan validation error #34

Open
Kid80 opened this issue Dec 21, 2022 · 5 comments
Open

Vulkan validation error #34

Kid80 opened this issue Dec 21, 2022 · 5 comments

Comments

@Kid80
Copy link

Kid80 commented Dec 21, 2022

When I run the walnut example repo I get these errors, but the window still seems to work normally.

[vulkan] Debug report from ObjectType: 19
Message: Validation Error: [ VUID-vkCmdDrawIndexed-blendEnable-04727 ] Object 0: handle = 0x27d60e0000000019, type = VK_OBJECT_TYPE_PIPELINE; | MessageID = 0x8a06751e | vkCmdDrawIndexed: Image view's format features of the color attachment (0) of the active subpass do not contain VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT bit, but active pipeline's pAttachments[0].blendEnable is not VK_FALSE. The Vulkan spec states: If rasterization is not disabled in the bound graphics pipeline, then for each color attachment in the subpass, if the corresponding image view's format features do not contain VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT, then the blendEnable member of the corresponding element of the pAttachments member of pColorBlendState must be VK_FALSE (https://vulkan.lunarg.com/doc/view/1.3.236.0/windows/1.3-extensions/vkspec.html#VUID-vkCmdDrawIndexed-blendEnable-04727)

[vulkan] Debug report from ObjectType: 23
Message: Validation Error: [ VUID-vkCmdDrawIndexed-magFilter-04553 ] Object 0: handle = 0x908683000000001d, type = VK_OBJECT_TYPE_DESCRIPTOR_SET; Object 1: handle = 0x9fde6b0000000014, type = VK_OBJECT_TYPE_SAMPLER; Object 2: handle = 0x2cfba2000000001c, type = VK_OBJECT_TYPE_IMAGE_VIEW; | MessageID = 0x9c7248ee | vkCmdDrawIndexed: Descriptor set VkDescriptorSet 0x908683000000001d[] Sampler (VkSampler 0x9fde6b0000000014[]) is set to use VK_FILTER_LINEAR with compareEnable is set to VK_FALSE, but image view's (VkImageView 0x2cfba2000000001c[]) format (VK_FORMAT_R8G8B8A8_UNORM) does not contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT in its format features. The Vulkan spec states: If a VkSampler created with magFilter or minFilter equal to VK_FILTER_LINEAR and compareEnable equal to VK_FALSE is used to sample a VkImageView as a result of this command, then the image view's format features must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT (https://vulkan.lunarg.com/doc/view/1.3.236.0/windows/1.3-extensions/vkspec.html#VUID-vkCmdDrawIndexed-magFilter-04553)

I've tried reinstalling Vulkan and I've updated my graphics drivers.

It seems like the only problem is with validation, since the program seems to work properly. Should I change the Vulkan validation layer?

@sinisastevanovic
Copy link

Same here. Did you find a solution?

@CHCDST-SY
Copy link

I have the same problem. And as soon as I resize the imgui demo widget, the .exe aborts.
here's what I got :
[vulkan] Debug report from ObjectType: 1
Message: Validation Error: [ VUID-VkImageMemoryBarrier-image-parameter ] Object 0: handle = 0x2069dad7bf0, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0xe5f1f8f4 | Invalid VkImage Object 0x5528b100000009b4. The Vulkan spec states: image must be a valid VkImage handle (https://vulkan.lunarg.com/doc/view/1.3.236.0/windows/1.3-extensions/vkspec.html#VUID-VkImageMemoryBarrier-image-parameter)

E:\code\vsProjects\Walnut\Walnut\bin\Debug-windows-x86_64\WalnutApp\WalnutApp.exe (process 34548)Aborted,code is -1073741819。

@DerDunkelheit
Copy link

Same here. Tried to download new version of sdk, didn't work

@Kid80
Copy link
Author

Kid80 commented Apr 16, 2023

Validation is only run in Debug mode, so if you change to release mode, the validation errors will not happen. This will have the side effect of validation not being run, so do it at your own risk.

This is just a workaround, not a fix

@rs-sliske
Copy link

ocornut/imgui#7236

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants