-
Notifications
You must be signed in to change notification settings - Fork 960
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
Unit test wgpu::example/msaa-line fails with panic on hardware: Intel(R) HD Graphics 4600 (HSW GT2) with driver: Mesa 21.2.6 with backend: Vulkan #3422
Comments
Can you upload the resulting image? It will be saved in |
Sure: wgpu/examples/msaa-line/screenshot.png wgpu/examples/msaa-line/screenshot-actual.png Click on the picture above to open it in a new tab on white background, because of transparency you may not see much on dark theme. You should see something like this in the top-left area: wgpu/examples/msaa-line/screenshot-difference.png This is great info, it shows that this really is the same issue (or as least there is a common factor) as I got on Bevy: bevyengine/bevy#7232 |
Oh boy. I'm not sure we're going to be able to fix this in a meaningful way. Jason Ekstrand (one of the lead devs of intel/vulkan on linux) has said before that supporting vulkan on haswell was a mistake as it just can't be made compliant - and as such that driver will have a ton of bugs. What GLES version do you get from running |
I'm not familiar with this info dump but I think the important numbers are: I put more detailed info below just in case:
Yes that's fine, I'll be happy to fall back to OpenGL, whether automatically or by adding an environment variable. |
So I've tested environment variable However, setting |
That should work, what error are you getting? |
Oh, in fact the backend does change and msaa_line passes this time.
I searched for existing issues and found this one: #1727 However, the latter has been resolved. I tried RUST_BACKTRACE=1 and full too but the stack is approximately the same as in the ticket. Worth opening another issue, or would you rather have me try prime-run and properly run on my discrete Nvidia GPU first? By the way, I tried the second test command, I guess deleting the target folder in the meantime helped. |
Haswell iGPUs are not yet Vulkan conformant: You should report this issue to the mesa repo. |
Description
The unit test wgpu::example/msaa-line failed on my machine (specs at the bottom).
Repro steps
On a machine with similar specs, run all unit tests:
$ cargo nextest run --no-fail-fast
Expected vs observed behavior
Expected: all tests pass
Actual:
1 failed test (excerpt just below, full log more below)
Extra materials
Full test log:
nextest result on Intel(R) HD Graphics 4600 (HSW GT2) - Mesa 21.2.6 - Vulkan.txt
I also tried:
$ cargo run --bin wgpu-info -- cargo nextest run --no-fail-fast
in order to also test my discrete GPU, but it failed on linking, so I don't have test results for this one, unfortunately (that may be worth another ticket, but I must first ensure I setup everything correctly for this more complex test).
If you know a way to enforce using a specific GPU for the tests, I can also do that to verify that my discrete card (Nvidia GTX 860M) doesn't have the issue.
Platform
Linux Ubuntu 20.04 with Unity desktop
wgpu 0.14.2
Graphical hardware/driver info (AdapterInfo output from bevy engine):
AdapterInfo { name: "Intel(R) HD Graphics 4600 (HSW GT2)", vendor: 32902, device: 1046, device_type: IntegratedGpu, driver: "Intel open-source Mesa driver", driver_info: "Mesa 21.2.6", backend: Vulkan }
I got an integrated Intel(R) HD Graphics 4600 (HSW GT2) + a discrete Nvidia GTX 860M on my laptop, but the latter doesn't seem to be recognized by this particular program.
The text was updated successfully, but these errors were encountered: