Japanese adult Pixel Game Maker game fails to compile shader
Describe the issue
Originally reported as wine bug 57018
Running the game in wine leads to a whitescreen. I managed to get an apitrace on windows, and while that plays back fine on windows, it fails on Linux using mesa. It replays fine on Linux using the proprietary AMD driver (progl)
Issue persists with mesa-git 97f6a296
Error message is 751367: message: major shader compiler error 10: 0:32(15): error: could not implicitly convert operands to arithmetic operator
Log files as attachment
Replacement shader that makes it work when applied using MESA_SHADER_READ_PATH: FS_cb525c0ac0aaa22c22f86d3e1d3a1d49726932ca.glsl
All I did was changing
texColor *= (1 - Intensity);
to texColor *= (1.0 - Intensity);
Apitrace (NSFW!): gear_libterators.trace
System information
System:
Host: arch Kernel: 6.10.2-arch1-1 arch: x86_64 bits: 64 compiler: gcc
v: 14.1.1
Desktop: KDE Plasma v: 6.1.3 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
Distro: Arch Linux
CPU:
Info: 8-core model: AMD Ryzen 7 3800X bits: 64 type: MT MCP arch: Zen 2
rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 32 MiB
Speed (MHz): avg: 2631 high: 3798 min/max: 2200/4559 boost: enabled cores:
1: 3712 2: 2128 3: 3798 4: 2057 5: 2056 6: 2026 7: 2400 8: 2200 9: 3230
10: 2058 11: 3622 12: 2627 13: 2058 14: 2144 15: 2399 16: 3594
bogomips: 124863
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
vendor: Sapphire driver: amdgpu v: kernel arch: RDNA-1 pcie: speed: 16 GT/s
lanes: 16 ports: active: DP-1,DP-2 empty: DP-3,HDMI-A-1 bus-ID: 28:00.0
chip-ID: 1002:731f
Device-2: Sunplus Innovation FHD Camera Microphone
driver: snd-usb-audio,uvcvideo type: USB rev: 2.0 speed: 480 Mb/s lanes: 1
bus-ID: 1-2.4:7 chip-ID: 1bcf:28c4
Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.1
compositor: kwin_wayland driver: X: loaded: amdgpu dri: radeonsi gpu: amdgpu
d-rect: 5120x1440 display-ID: 0
Monitor-1: DP-1 pos: right res: 2560x1440 size: N/A
Monitor-2: DP-2 pos: primary,left res: 2560x1440 size: N/A
API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: swrast
surfaceless: drv: radeonsi wayland: drv: radeonsi x11: drv: radeonsi
inactive: gbm
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.1.4-arch1.2
glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 5700 (radeonsi navi10
LLVM 18.1.8 DRM 3.57 6.10.2-arch1-1) device-ID: 1002:731f display-ID: :1.0
API: Vulkan v: 1.3.279 surfaces: xcb,xlib,wayland device: 0
type: discrete-gpu driver: mesa radv device-ID: 1002:731f