void-linux / void-linux/void-packages
Retroarch 1.13: "Failed to compile vertex shader stage" after second launch of core
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 3.4k
- Forks
- 2.8k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 299
Description
Is this a new report?
Yes
System Info
Void 6.0.10_1 x86_64 GenuineIntel uptodate FFFFFFF
Package(s) Affected
retroarch-1.13.0_1
Does a report exist for this bug with the project's home (upstream) and/or another distro?
https://github.com/libretro/RetroArch/issues/13583
https://bugs.archlinux.org/task/73585
Expected behaviour
Retroarch should allow the user to freely apply and edit slang and glsl shaders to its various emulator cores. Void's Retroarch package seems to handle glsl shaders correctly through the gl graphics driver, but has problems with slang shaders under the Vulkan or coregl drivers.
Actual behaviour
When using Vulkan or coregl, Retroarch will not apply slang shaders after the second time a core is launched without restarting the entire program, leaving an [ERROR] [slang]: Failed to compile vertex shader stage. message in the logs.
The issue seems to lie with the --disable-builtin-slang build option, and the Arch package maintainer solved the problem by removing it from their builds. As discussed in the upstream bugreport, it's possible this is part of a deeper issue with either Retroarch or glslang, but the quick and dirty fix of just removing the build option from the xbps template appears to solve the issue without causing any immediately obvious problems, i.e. "works on my machine".
Steps to reproduce
- Launch Retroarch with the coregl or Vulkan graphics drivers for slang shader support
- Load and run a core with content, applying a slang shader preset from the quick options menu
- Shaders should apply correctly, even when loading different presets or toggling on and off
- Close the content/core
- Without closing Retroarch, reload a core and attempt to apply a slang shader preset
- All shaders will fail to apply until a full restart of Retroarch
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the RetroArch xbps template for package version 1.13.0_1 and inspect how the --disable-builtin-slang build option is applied. Rebuild the package and reproduce the reported sequence with Vulkan or coregl: applying a slang shader after relaunching a core should no longer fail.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100