[Intel/Vulkan] White blinking artifacts in Wolfenstein Youngblood
System information
# inxi -GSC -xx
System:
Host: hrk1-lhp-a00296 Kernel: 5.17.1-3-MANJARO arch: x86_64 bits: 64
compiler: gcc v: 11.2.0 Desktop: GNOME v: 41.5 tk: GTK v: 3.24.33
wm: gnome-shell dm: GDM Distro: Manjaro Linux base: Arch Linux
CPU:
Info: quad core model: Intel Core i5-8300H bits: 64 type: MT MCP
arch: Coffee Lake rev: A cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
Speed (MHz): avg: 3998 high: 4001 min/max: 800/4000 cores: 1: 4001
2: 4000 3: 3986 4: 4000 5: 4000 6: 4000 7: 4001 8: 4000 bogomips: 36812
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Hewlett-Packard
driver: i915 v: kernel ports: active: eDP-1 empty: DP-1,DP-2,HDMI-A-1
bus-ID: 00:02.0 chip-ID: 8086:3e9b
Device-2: Chicony HP Wide Vision HD Camera type: USB driver: uvcvideo
bus-ID: 1-5:3 chip-ID: 04f2:b63b
Display: wayland server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.1
compositor: gnome-shell driver: gpu: i915 display-ID: 0
Monitor-1: eDP-1 model: BOE Display 0x07a1 res: 1920x1080 dpi: 142
diag: 394mm (15.5")
OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
v: 4.6 Mesa 21.3.8 direct render: Yes
Describe the issue
There are white blinking artifacts in a game and game menu. Reproduced on Intel Coffelake but should be visible on other Intel platforms. This happens because Intel math sin function doesn't work properly with large input values. One of the game frament shaders calls sin(gl_FragCoord.y * 521.0)
that returns incorrect results.
Regression
Reproducible on all mesa versions.