Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retroarch 1.13: "Failed to compile vertex shader stage" after second launch of core #41015

Open
twingofan opened this issue Dec 11, 2022 · 0 comments
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed

Comments

@twingofan
Copy link

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?

libretro/RetroArch#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

  1. Launch Retroarch with the coregl or Vulkan graphics drivers for slang shader support
  2. Load and run a core with content, applying a slang shader preset from the quick options menu
  3. Shaders should apply correctly, even when loading different presets or toggling on and off
  4. Close the content/core
  5. Without closing Retroarch, reload a core and attempt to apply a slang shader preset
  6. All shaders will fail to apply until a full restart of Retroarch
@twingofan twingofan added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed
Projects
None yet
Development

No branches or pull requests

1 participant