Retroarch: [PS3] Shaders don't load

Created on 27 Dec 2019  Â·  10Comments  Â·  Source: libretro/RetroArch

First and foremost consider this:

  • Only RetroArch bugs should be filed here. Not core bugs or game bugs
  • This is not a forum or a help section, this is strictly developer oriented

Description

No shaders currently work on the PS3 CEX bin, error message keeps showing up saying shader couldn't be applied. Tested with SNES (all cores), GBA and CPS2 (FBA core), all result the same error.

Expected behavior

Shader to be applied smoothing the image.

Actual behavior

Nothing changes, error message shows up on GUI.

Steps to reproduce the bug

  1. Load ROM
  2. Press R3 + L3 to go to menu, shaders, choose any shader
  3. error message shows up

Bisect Results

Since 1.7.2

Version/Commit

You can find this information under Information/System Information

  • RetroArch: 1.8.1

Environment information

  • OS: PS3
  • Compiler: Pre built package

Most helpful comment

For whatever reason, the shader compiler used by the PS3 is super-picky and fails to compile most of the shaders, though they work fine everywhere else. These shaders apparently worked with v1.0.0.2 but not later versions, if you'd like to try them:
https://drive.google.com/open?id=1d0RMln05luqV6OntSGlHUMWpaMapmWNl

All 10 comments

GLSL shaders have never worked and will never work. You need cg shaders
instead.

On Fri, 27 Dec 2019, 23:58 SwiftMove, notifications@github.com wrote:

Logged in to report this issue as well. It's happening on other cores as
well, not just PS3. I downgraded back to v1.8.1 and shaders are working
normal again. From what I can tell, RA seems to be ignoring either
video_shader_enable = "true" or video_shader =
":\shaders\shaders_glsl\hqx\hq3x.glslp". Even if I reset RA and go thru the
process of Loading a Preset, RA v1.8.2 is not updating the retroarch.cfg
file with video_shader_enable = "true" and video_shader =
":\shaders\shaders_glsl\hqx\hq3x.glslp" like it does in v1.8.1.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/libretro/RetroArch/issues/9901?email_source=notifications&email_token=AAIGQSUOR6JTMUULZSDYSNTQ22B73A5CNFSM4KADHOSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHX362A#issuecomment-569360232,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIGQSVERRK6NXA34FDDQ2LQ22B73ANCNFSM4KADHOSA
.

PS3 bin only comes bundled with CG shaders. Those are the ones that don't work. Updating makes no difference,

BTW, I just download and tried the PC version and shaders load without a hitch. PS3 version is the problem then, gives error message FAILED TO APPLY SHADER PRESET.

I can confirm. Shaders don´t work. Error: FAILED TO APPLY SHADER PRESET

As a shader replacement To improve the graphics, enable bilinear filtering in the video options.

Just debugged the issue on the PS3. LOGS ARE

LOADING CG META-SHADER: /DEV_HDD0/......./SHADERS_CG/XSAI/SUPER-2XSAI.CGP
LOADING CG SHADER: "/DEV_HDD0/........./SHADERS_CG/XSAI/SHADERS/SUPER-2XSAI.CG"
CG ERROR: THE COMPILE RETURNED AN ERROR.
FAILED TO LOAD SHADERS...
DESTROYING PROGRAMS.

At some point there's a warning saying: [GL]: FAILED TO SET MULTIPASS SHADER. FALLING BACK TO STOCK.

For whatever reason, the shader compiler used by the PS3 is super-picky and fails to compile most of the shaders, though they work fine everywhere else. These shaders apparently worked with v1.0.0.2 but not later versions, if you'd like to try them:
https://drive.google.com/open?id=1d0RMln05luqV6OntSGlHUMWpaMapmWNl

If you guys can confirm these older shaders from v1.0.0.2 worked, then perhaps we can put them in a specific folder on the repo and then one could use them for PS3.

The alternative is trying to find a way to get the same Cg shaders to work on both PS3 and PC, but as we can see, that is often unsustainable due to slightly divergent ABIs.

I can confirm the shaders provided in the zip package by hizzlekizzle indeed do work in the ps3, the great majority without any performance issues.

I can also confirm the shaders provided are working fine. Thank you.

I'm also here to confirm that the .zip provided above does indeed preserve my hair, as using RetroArch for the first time on PS3, I could NOT understand how shaders worked or why I kept getting an obscure, unhelpful "failed to apply shader preset" error message. Really shouldn't have those files bundled with PS3 if they don't work.

I nuked the contents of my shaders folder and replaced it with the contents of this zip. Now everything works, it's still a bit obtuse an interface, but at least it's less outright broken :)

Super ultra very much in favor of pushing the contents of this Zip out to the PS3 release version to fix this :)

Can confirm, not a single bundled shader I tried worked (1.8.4), on the other hand the pack provided by @hizzlekizzle worked flawlessly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fr500 picture fr500  Â·  4Comments

RobLoach picture RobLoach  Â·  3Comments

Chocobubba picture Chocobubba  Â·  3Comments

orbea picture orbea  Â·  3Comments

blackman91 picture blackman91  Â·  3Comments