gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
12.72k stars 933 forks source link

Garbage visuals on old Intel integrated graphics under Windows 10 #2211

Open francesco-cattoglio opened 3 years ago

francesco-cattoglio commented 3 years ago

Description Rendering on an integrated Intel HD 5500 produces wrong visual results.

Repro steps I am unable to provide repro steps because the issue only appeared on one of my student's laptops.

Expected vs observed behavior Computing and displaying too many meshes on the screen causes the driver to produce garbage visuals. In particular, it appears that the screen is not cleared anymore between rendering calls, see attached screenshot. If we enable rendering via WARP this does not happen.

Extra materials capture_2

Platform This is a snippet from the laptop's DxDiag output, containing some info about the system: DxDiag.txt

This binary was compiled using a rather old version of wgpu (~0.8). Since the issue goes away when I force-enable WARP, I think this might be a driver issue and can just be marked as "not our problem". If we want to investigate a bit further, I can let the user test a new version of the binary that uses wgpu 0.11 and run the test again.

teoxoy commented 1 year ago

Broadwell/Gen8 should have proper D3D12 support (unlike Haswell/Gen7).

           Card name: Intel(R) HD Graphics 5500
         Driver Name: igdumdim64.dll,igd10iumd64.dll,igd10iumd64.dll,igd12umd64.dll
      Driver Version: 20.19.15.5070
         DDI Version: 12
      Feature Levels: 11_1,11_0,10_1,10_0,9_3,9_2,9_1
        Driver Model: WDDM 2.0
   Driver Attributes: Final Retail
    Driver Date/Size: 27/12/2018 01:00:00, 39863056 bytes
           Vendor ID: 0x8086
           Device ID: 0x1616

The driver version was quite old even at the time this issue was reported.

Can you try the latest available driver? (15.40.48.5171; released on 2/5/2021)

https://www.intel.com/content/www/us/en/download/18369/intel-graphics-driver-for-windows-15-40.html