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

wgpu-example-runner throws vulkan validation error #163

Closed
nipunG314 opened this issue Oct 27, 2020 · 5 comments
Closed

wgpu-example-runner throws vulkan validation error #163

nipunG314 opened this issue Oct 27, 2020 · 5 comments
Labels
a: examples Issues specific to the examples in the repository. c: rustc_codegen_spirv Issues specific to the rustc_codegen_spirv crate. t: bug Something isn't working

Comments

@nipunG314
Copy link
Contributor

Expected Behaviour

wgpu-example-runner should show no errors or warnings during or post execution.

Example & Steps To Reproduce

Running wgpu-example-runner on my system shows the following warning as a part of the Vulkan Validation layer:

[1.265265 ERROR]()(no module): 
VALIDATION [UNASSIGNED-CoreValidation-Shader-InconsistentSpirv (7060244)] : Validation Error: [ UNASSIGNED-CoreValidation-Shader-InconsistentSpirv ] Object 0: handle = 0x556ecb32ae90, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x6bbb14 | SPIR-V module not valid: Invalid SPIR-V binary version 1.3 for target environment SPIR-V 1.0 (under Vulkan 1.0 semantics).
object info: (type: DEVICE, hndl: 93934343859856)

The binary runs properly and exits properly without crashing.

System Info

  • Rust: 1.49.0-nightly (ffa2e7ae8 2020-10-24)
  • OS: Ubuntu 18.04.4 LTS
  • GPU: NVIDIA GeForce 940MX
  • SPIR-V: v2020.3
@nipunG314 nipunG314 added the t: bug Something isn't working label Oct 27, 2020
@repi repi added the g: nvidia Issues specific to Nvidia. label Oct 27, 2020
@fu5ha
Copy link
Member

fu5ha commented Oct 27, 2020

This is a known issue but I don't think there's been a tracking issue for it on GitHub yet. It's due to the fact that gfx-hal (and by extension wgpu) are hardcoded to use Vulkan version 1.0.0 which supports only SPIR-V version 1.0. This is probably something that we want to figure out in terms of whether rust-gpu should support Vulkan/SPIR-V 1.0 explicitly or not.

Currently, it's ignorable, it's an 'error' but the shader still runs properly.

@fu5ha fu5ha added c: rustc_codegen_spirv Issues specific to the rustc_codegen_spirv crate. t: design Design of our rust-gpu language and std t: tracking issue An issue tracking the progress of a specific feature or change. and removed g: nvidia Issues specific to Nvidia. t: design Design of our rust-gpu language and std t: tracking issue An issue tracking the progress of a specific feature or change. labels Oct 27, 2020
@fu5ha
Copy link
Member

fu5ha commented Oct 27, 2020

Actually going to make a separate issue for the design decision and leave this one to just track this 'bug'

@fu5ha fu5ha added the a: examples Issues specific to the examples in the repository. label Oct 27, 2020
@khyperia
Copy link
Contributor

Is this "fixed" by #165, or should we turn this into a tracking issue to get wgpu/gfx-hal to use vulkan 1.1?

@XAMPPRocky
Copy link
Member

Well I think if anything we'd want to close this one and re-open #164 for tracking.

@khyperia
Copy link
Contributor

khyperia commented Apr 1, 2021

Eh, the wgpu binary is now being built for 1.0, and this is kind of just waiting for wgpu/gfx-hal to use vulkan 1.1, so I'll close this instead of forever waiting for them.

@khyperia khyperia closed this as completed Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: examples Issues specific to the examples in the repository. c: rustc_codegen_spirv Issues specific to the rustc_codegen_spirv crate. t: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants