Issues with many GLSL presets on macOS

Hello there. I’ve been using macOS quite a bit lately and RetroArch works wonderfully on it as a rule, but there seem to be an issue with many of the GLSL shader presets not working. I decided to test each of them individually. I have two machines, one Hackintosh running NVIDIA graphics and a MacBook Pro with Intel Iris Graphics. I tested the shaders on the desktop(probably not the best decision), but results seem pretty consistent across the two. 100% know that the CRT and Handheld presets have issues of both machine.

All of the listed presets do not load anything. If the stack is empty, nothing shows up. If there’s another shader/preset loaded, it will remove the effect initially but then change nothing in the stack.

Non Working GLSL Presets in MacOS 10.12.5 with Nvidia WebDriver 378.05.05.15f01, using 2017-07-22_RetroArch.dmg x86_64

anti-aliasing

aa-shader-4.0.glslp

CRT

crt-royale.glslp

crtglow_guass_ntsc_3phase.glslp

crtsim.glslp

Cubic

cubic-gamma-correct.glslp

cubic.glslp

Dithering

bayer-matrix-dither.glslp gendither.glslp

Handheld

lcd-grid-v2.glslp does not load. Variants load color profile only

hqx

hq2x-halphon.glslp

nendi

Neither of the nendi presets load

nendi3

None of the nendi3 shaders load

NTSC

none of the ntsc shaders besides artifact-colors.glslp load

Omniscale

omniscale.glslp

PAL

pal.glslp

Presets

none of the preset folder shaders besides c64-monitor.glslp load

ScaleFX

neither of the scalefx presets load

ScalenX

scale2xSFX.glslp

Sharpen

none of the sharpen presets load

xbr

xbr-lv2.glsl is the only preset in this category that works

Very well could just be issues on my computers or me doing something dumb, but again, pretty consistent(although not 100% cross checked) on two machines. It’s possible I’m completely oblivious to something obvious and wasted a half hour for no reason, but oh well lol.

I’m fairly certain all of the CG versions of the presets mentioned work, but the CG compatible version of RetroArch has to be compiled from source due to what appears to be a BuildBot error and CG being demoted to second class, it would be nice to figure this one out :grin: If anyone can point me in the right direction, it would be greatly appreciated.

Get me some logs that show the shader compiler errors and I can probably do something about it.

You’ll have to go into the app bundle and launch the executable from the terminal with --verbose and it should print the errors to the console window.

1 Like

Hey, thanks for the reply.

I don’t have time to go through and get the results for all of them tonight, but here’s what’s going on with CRT-Royale and lcd-grid-v2, bias because they’re the ones I’m most interested in using :+1: Log seems to be identical on both machines.

CRT-Royale

[INFO] [GLSL]: Checking GLSL shader support …

[INFO] Found #pragma parameter crt_gamma (crt_gamma) 2.500000 1.000000 5.000000 0.025000

[INFO] Found #pragma parameter lcd_gamma (lcd_gamma) 2.200000 1.000000 5.000000 0.025000

[INFO] Found #pragma parameter levels_contrast (levels_contrast) 1.000000 0.000000 4.000000 0.015625

[INFO] Found #pragma parameter halation_weight (halation_weight) 0.000000 0.000000 1.000000 0.005000

[INFO] Found #pragma parameter diffusion_weight (diffusion_weight) 0.075000 0.000000 1.000000 0.005000

[INFO] Found #pragma parameter bloom_underestimate_levels (bloom_underestimate_levels) 0.800000 0.000000 5.000000 0.010000

[INFO] Found #pragma parameter bloom_excess (bloom_excess) 0.000000 0.000000 1.000000 0.005000

[INFO] Found #pragma parameter beam_min_sigma (beam_min_sigma) 0.020000 0.005000 1.000000 0.005000

[INFO] Found #pragma parameter beam_max_sigma (beam_max_sigma) 0.300000 0.005000 1.000000 0.005000

[INFO] Found #pragma parameter beam_spot_power (beam_spot_power) 0.330000 0.010000 16.000000 0.010000

[INFO] Found #pragma parameter beam_min_shape (beam_min_shape) 2.000000 2.000000 32.000000 0.100000

[INFO] Found #pragma parameter beam_max_shape (beam_max_shape) 4.000000 2.000000 32.000000 0.100000

[INFO] Found #pragma parameter beam_shape_power (beam_shape_power) 0.250000 0.010000 16.000000 0.010000

[INFO] Found #pragma parameter beam_horiz_filter (beam_horiz_filter) 0.000000 0.000000 2.000000 1.000000

[INFO] Found #pragma parameter beam_horiz_sigma (beam_horiz_sigma) 0.350000 0.000000 0.670000 0.005000

[INFO] Found #pragma parameter beam_horiz_linear_rgb_weight (beam_horiz_linear_rgb_weight) 1.000000 0.000000 1.000000 0.010000

[INFO] Found #pragma parameter convergence_offset_x_r (convergence_offset_x_r) 0.000000 -4.000000 4.000000 0.050000

[INFO] Found #pragma parameter convergence_offset_x_g (convergence_offset_x_g) 0.000000 -4.000000 4.000000 0.050000

[INFO] Found #pragma parameter convergence_offset_x_b (convergence_offset_x_b) 0.000000 -4.000000 4.000000 0.050000

[INFO] Found #pragma parameter convergence_offset_y_r (convergence_offset_y_r) 0.000000 -2.000000 2.000000 0.050000

[INFO] Found #pragma parameter convergence_offset_y_g (convergence_offset_y_g) 0.000000 -2.000000 2.000000 0.050000

[INFO] Found #pragma parameter convergence_offset_y_b (convergence_offset_y_b) 0.000000 -2.000000 2.000000 0.050000

[INFO] Found #pragma parameter mask_type (mask_type) 1.000000 0.000000 2.000000 1.000000

[INFO] Found #pragma parameter mask_sample_mode (mask_sample_mode_desired) 1.000000 0.000000 2.000000 1.000000

[INFO] Found #pragma parameter mask_specify_num_triads (mask_specify_num_triads) 0.000000 0.000000 1.000000 1.000000

[INFO] Found #pragma parameter mask_triad_size_desired (mask_triad_size_desired) 3.000000 1.000000 18.000000 0.125000

[INFO] Found #pragma parameter mask_num_triads_desired (mask_num_triads_desired) 480.000000 342.000000 1920.000000 1.000000

[INFO] Found #pragma parameter aa_subpixel_r_offset_x (aa_subpixel_r_offset_x_runtime) -0.333333 -0.333333 0.333333 0.333333

[INFO] Found #pragma parameter aa_subpixel_r_offset_y (aa_subpixel_r_offset_y_runtime) 0.000000 -0.333333 0.333333 0.333333

[INFO] Found #pragma parameter antialias_cubic_sharpness (aa_cubic_c) 0.500000 0.000000 4.000000 0.015625

[INFO] Found #pragma parameter antialias_gauss_sigma (aa_gauss_sigma) 0.500000 0.062500 1.000000 0.015625

[INFO] Found #pragma parameter geom_radius (geom_radius) 2.000000 0.160000 1024.000000 0.100000

[INFO] Found #pragma parameter geom_view_dist (geom_view_dist) 2.000000 0.500000 1024.000000 0.250000

[INFO] Found #pragma parameter geom_tilt_angle_x (geom_tilt_angle_x) 0.000000 -3.141593 3.141593 0.017453

[INFO] Found #pragma parameter geom_tilt_angle_y (geom_tilt_angle_y) 0.000000 -3.141593 3.141593 0.017453

[INFO] Found #pragma parameter geom_aspect_ratio_x (geom_aspect_ratio_x) 432.000000 1.000000 512.000000 1.000000

[INFO] Found #pragma parameter geom_aspect_ratio_y (geom_aspect_ratio_y) 329.000000 1.000000 512.000000 1.000000

[INFO] Found #pragma parameter geom_overscan_x (geom_overscan_x) 1.000000 0.003906 4.000000 0.003906

[INFO] Found #pragma parameter geom_overscan_y (geom_overscan_y) 1.000000 0.003906 4.000000 0.003906

[INFO] Found #pragma parameter border_size (border_size) 0.015000 0.000000 0.500000 0.005000

[INFO] Found #pragma parameter border_darkness (border_darkness) 2.000000 0.000000 16.000000 0.062500

[INFO] Found #pragma parameter border_compress (border_compress) 2.500000 1.000000 64.000000 0.062500

[INFO] Found #pragma parameter interlace_bff (interlace_bff) 0.000000 0.000000 1.000000 1.000000

[INFO] Found #pragma parameter interlace_1080i (interlace_1080i) 0.000000 0.000000 1.000000 1.000000

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Using GLSL version 130.

[INFO] Shader log: ERROR: 0:1: ‘’ : version ‘130’ is not supported

[ERROR] Failed to compile vertex shader #0

[ERROR] Failed to link program #0.

[ERROR] Failed to create GL program #0.

[INFO] [GLSL]: Checking GLSL shader support …

[WARN] [GL]: Stock GLSL shaders will be used.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[WARN] [GL]: Failed to set multipass shader. Falling back to stock.

lcd-grid-v2

[INFO] [Shader driver]: Using GLSL shader backend.

[INFO] [GLSL]: Checking GLSL shader support …

[INFO] Found #pragma parameter Colour of R subpixel: R (RSUBPIX_R) 1.000000 0.000000 1.000000 0.010000

[INFO] Found #pragma parameter Colour of R subpixel: G (RSUBPIX_G) 0.000000 0.000000 1.000000 0.010000

[INFO] Found #pragma parameter Colour of R subpixel: B (RSUBPIX_B) 0.000000 0.000000 1.000000 0.010000

[INFO] Found #pragma parameter Colour of G subpixel: R (GSUBPIX_R) 0.000000 0.000000 1.000000 0.010000

[INFO] Found #pragma parameter Colour of G subpixel: G (GSUBPIX_G) 1.000000 0.000000 1.000000 0.010000

[INFO] Found #pragma parameter Colour of G subpixel: B (GSUBPIX_B) 0.000000 0.000000 1.000000 0.010000

[INFO] Found #pragma parameter Colour of B subpixel: R (BSUBPIX_R) 0.000000 0.000000 1.000000 0.010000

[INFO] Found #pragma parameter Colour of B subpixel: G (BSUBPIX_G) 0.000000 0.000000 1.000000 0.010000

[INFO] Found #pragma parameter Colour of B subpixel: B (BSUBPIX_B) 1.000000 0.000000 1.000000 0.010000

[INFO] Found #pragma parameter Gain (gain) 1.000000 0.500000 2.000000 0.050000

[INFO] Found #pragma parameter LCD Input Gamma (gamma) 3.000000 0.500000 5.000000 0.100000

[INFO] Found #pragma parameter LCD Output Gamma (outgamma) 2.200000 0.500000 5.000000 0.100000

[INFO] Found #pragma parameter Black level (blacklevel) 0.050000 0.000000 0.500000 0.010000

[INFO] Found #pragma parameter Ambient (ambient) 0.000000 0.000000 0.500000 0.010000

[INFO] Found #pragma parameter BGR (BGR) 0.000000 0.000000 1.000000 1.000000

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Using GLSL version 130.

[INFO] Shader log: ERROR: 0:1: ‘’ : version ‘130’ is not supported

[ERROR] Failed to compile vertex shader #0

[ERROR] Failed to link program #0.

[ERROR] Failed to create GL program #0.

[INFO] [GLSL]: Checking GLSL shader support …

[WARN] [GL]: Stock GLSL shaders will be used.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[INFO] [GLSL]: Found GLSL vertex shader.

[INFO] [GLSL]: Found GLSL fragment shader.

[INFO] [GLSL]: Linking GLSL program.

[WARN] [GL]: Failed to set multipass shader. Falling back to stock.

Looking at that, this seems to be the common denominator.

[INFO] [GLSL]: Using GLSL version 130.

[INFO] Shader log: ERROR: 0:1: ‘’ : version ‘130’ is not supported

Some googling returns results that are a little bit out my depth, but it appears there’s some dumb Apple stuff at play.

aw, dang, yeah. That just means the driver doesn’t support that level of GLSL. CRT-Royale 100% needs it but you can try modifying lcd-grid-v2 by changing the first line from #version 130 to #version 120. It might work with the lower version.

AFAIK macOS has no support for GLSL version 130 or 140 at all. The non-working presets all have at least one shader pass with #version 130 set (except for the Bayer matrix dithering one, which has #version 430, and pal.glslp, which has no #version directive).

Ah, that sucks. Doing some Googling around, everything I’m running should be able to support it, but yeah, dumb Apple stuff.

I just went ahead and compiled the CG version, thank you for the help though.

1 Like