gfx-rs / naga

Universal shader translation in Rust

Home Page:https://github.com/gfx-rs/wgpu/tree/trunk/naga

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show exact place where shader failed in Firefox Nightly

munrocket opened this issue · comments

Description
Firefox Nightly now showing informative errors.

Repro steps
Open www.compute.toys or official example https://wgpu.rs/examples-gpu/?example=hello-compute in Firefox Nightly

Expected vs observed behavior
Compute should work or give a place where shader failed.

Extra materials

compute.toys error on Ubuntu
Encountered one or more errors while creating shader module
WebGPU compilation info for shader module (1 error(s), 0 warning(s), 0 info)
Error matching shader requirements against the pipeline, caused by: Shader module is invalid
Error matching shader requirements against the pipeline, caused by: Shader module is invalid [249.f88f322b2c8a4236.js:1:24872](https://compute.toys/_next/static/chunks/249.f88f322b2c8a4236.js)
In a set_pipeline command, caused by: Compute pipeline (1, 2, Vulkan) is invalid
In a set_pipeline command, caused by: Compute pipeline (1, 2, Vulkan) is invalid [249.f88f322b2c8a4236.js:1:24872](https://compute.toys/_next/static/chunks/249.f88f322b2c8a4236.js)
Command encoder is invalid
Command encoder is invalid [249.f88f322b2c8a4236.js:1:24872](https://compute.toys/_next/static/chunks/249.f88f322b2c8a4236.js)
In a pass parameter, caused by: Command encoder is invalid
In a pass parameter, caused by: Command encoder is invalid [249.f88f322b2c8a4236.js:1:24872](https://compute.toys/_next/static/chunks/249.f88f322b2c8a4236.js)
Encountered one or more errors while creating shader module
WebGPU compilation info for shader module (1 error(s), 0 warning(s), 0 info)
In a set_pipeline command, caused by: Compute pipeline (2, 2, Vulkan) is invalid
In a set_pipeline command, caused by: Compute pipeline (2, 2, Vulkan) is invalid [249.f88f322b2c8a4236.js:1:24872](https://compute.toys/_next/static/chunks/249.f88f322b2c8a4236.js)
Channel 0 loaded in 0.002s [249.f88f322b2c8a4236.js:1:24907](https://compute.toys/_next/static/chunks/249.f88f322b2c8a4236.js)
Channel 1 loaded in 0.001s [249.f88f322b2c8a4236.js:1:24907](https://compute.toys/_next/static/chunks/249.f88f322b2c8a4236.js)
Shader compiled in 0s [249.f88f322b2c8a4236.js:1:24907](https://compute.toys/_next/static/chunks/249.f88f322b2c8a4236.js)
Encountered one or more errors while creating shader module
WebGPU compilation info for shader module (1 error(s), 0 warning(s), 0 info)
In a set_pipeline command, caused by: Compute pipeline (3, 2, Vulkan) is invalid
In a set_pipeline command, caused by: Compute pipeline (3, 2, Vulkan) is invalid
wgpu.rs/compute error on Ubuntu ...nothing

Platform
Ubuntu with Cezanne Radeon Vega Series / Radeon Vega Mobile Series.

I believe that this is a duplicate of Firefox's tracking, which would mean that this issue doesn't belong here: https://bugzilla.mozilla.org/show_bug.cgi?id=1832860

I encourage you to CC yourself on the issue! It's likely to be a while before we get to this issue (we have actually running correctly for Windows on our plate first), but I'd really like to have folks to contact about the DX once we do get started. 🙂