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

Validation error spew on Vulkan #161

Open
SludgePhD opened this issue Apr 18, 2023 · 4 comments · Fixed by gfx-rs/naga#2455
Open

Validation error spew on Vulkan #161

SludgePhD opened this issue Apr 18, 2023 · 4 comments · Fixed by gfx-rs/naga#2455

Comments

@SludgePhD
Copy link
Contributor

The shaders created by wonnx apparently run into naga/wgpu bugs that cause a lot of validation errors on Vulkan:

[2023-04-18T00:42:44Z ERROR wgpu_hal::vulkan::instance] VALIDATION [UNASSIGNED-CoreValidation-Shader-InconsistentSpirv (0x6bbb14)]
        Validation Error: [ UNASSIGNED-CoreValidation-Shader-InconsistentSpirv ] Object 0: handle = 0x7f1894544910, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x6bbb14 | SPIR-V module not valid: [VUID-StandaloneSpirv-OpTypeRuntimeArray-04680] Vulkan, OpTypeStruct containing an OpTypeRuntimeArray must be decorated with Block or BufferBlock.
      %ArrayVector = OpTypeStruct %_runtimearr_Vec4
    
[2023-04-18T00:42:44Z ERROR wgpu_hal::vulkan::instance]         objects: (type: DEVICE, hndl: 0x7f1894544910, name: ?)
[2023-04-18T00:42:44Z ERROR wgpu_hal::vulkan::instance] VALIDATION [UNASSIGNED-CoreValidation-Shader-InconsistentSpirv (0x6bbb14)]
        Validation Error: [ UNASSIGNED-CoreValidation-Shader-InconsistentSpirv ] Object 0: handle = 0x7f1894544910, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x6bbb14 | SPIR-V module not valid: [VUID-StandaloneSpirv-OpTypeRuntimeArray-04680] Vulkan, OpTypeStruct containing an OpTypeRuntimeArray must be decorated with Block or BufferBlock.
      %ArrayVector = OpTypeStruct %_runtimearr_Vec4
    
[2023-04-18T00:42:44Z ERROR wgpu_hal::vulkan::instance]         objects: (type: DEVICE, hndl: 0x7f1894544910, name: ?)

Not really caused by wonnx, but virtually every shader it creates causes an error like this, so I figured I'd document the issue here so people know about it.

@pixelspark
Copy link
Collaborator

You might try upgrading wgpu - maybe that fixes it. We are using an old version (can't update just yet because of an issue with wgpu on the web - see #140, but I guess wgpu@master should work with the minor changes in the PR applied).

@pixelspark
Copy link
Collaborator

Could you test again with v0.5.0?

@SludgePhD
Copy link
Contributor Author

Same error happens on v0.5.0

@SludgePhD
Copy link
Contributor Author

Filed gfx-rs/naga#2322 upstream

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

Successfully merging a pull request may close this issue.

2 participants