Skip to content

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

@hsandt

Description

@hsandt

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)

1 failed test:
FAIL [ 3.726s] wgpu::example/msaa-line msaa_line
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.70s
...
--- STDERR: wgpu::example/msaa-line msaa_line ---
MESA-INTEL: warning: Haswell Vulkan support is incomplete
thread 'msaa_line' panicked at 'Image data mismatch! Outlier count 77230 over limit 65536. Max difference 255', wgpu/examples/msaa-line/../../tests/common/image.rs:134:13
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'msaa_line' panicked at 'UNEXPECTED TEST FAILURE DUE TO PANIC', wgpu/examples/msaa-line/../../tests/common/mod.rs:307:9
...
Summary [ 6.416s] 56 tests run: 55 passed, 1 failed, 0 skipped
FAIL [ 3.726s] wgpu::example/msaa-line msaa_line

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend: vulkanIssues with Vulkanexternal: driver-bugA driver is causing the bug, though we may still want to work around it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions