I was hoping to use an LCD shader for the GBA and other handheld consoles, but any shaders which rely on lcd-grid-v2.cg (handheld/shaders/lcd_cgwg/) don’t work. No other shaders I’ve tried exhibit this problem. If I start by choosing an unaffected shader, and then I choose lcd-grid-v2.cgp (or -gba-color.cgp or any others), the first shader stays selected in the shader menu, and the image is displayed without any shader until “apply” is selected (this re-applies the original shader). If no shader is initially selected, then nothing happens when v2 is chosen. This is the relevant section of the log:
RetroArch [INFO] :: Loading Cg meta-shader: c:\Program Files\Libretro\shaders\shaders_cg\handheld\lcd-grid-v2.cgpRetroArch [INFO] :: Found #pragma parameter Colour of R subpixel: R (RSUBPIX_R) 1.000000 0.000000 1.000000 0.010000
RetroArch [INFO] :: Found #pragma parameter Colour of R subpixel: G (RSUBPIX_G) 0.000000 0.000000 1.000000 0.010000
RetroArch [INFO] :: Found #pragma parameter Colour of R subpixel: B (RSUBPIX_B) 0.000000 0.000000 1.000000 0.010000
RetroArch [INFO] :: Found #pragma parameter Colour of G subpixel: R (GSUBPIX_R) 0.000000 0.000000 1.000000 0.010000
RetroArch [INFO] :: Found #pragma parameter Colour of G subpixel: G (GSUBPIX_G) 1.000000 0.000000 1.000000 0.010000
RetroArch [INFO] :: Found #pragma parameter Colour of G subpixel: B (GSUBPIX_B) 0.000000 0.000000 1.000000 0.010000
RetroArch [INFO] :: Found #pragma parameter Colour of B subpixel: R (BSUBPIX_R) 0.000000 0.000000 1.000000 0.010000
RetroArch [INFO] :: Found #pragma parameter Colour of B subpixel: G (BSUBPIX_G) 0.000000 0.000000 1.000000 0.010000
RetroArch [INFO] :: Found #pragma parameter Colour of B subpixel: B (BSUBPIX_B) 1.000000 0.000000 1.000000 0.010000
RetroArch [INFO] :: Found #pragma parameter Gain (gain) 1.000000 0.500000 2.000000 0.050000
RetroArch [INFO] :: Found #pragma parameter LCD Gamma (gamma) 3.000000 0.500000 5.000000 0.100000
RetroArch [INFO] :: Found #pragma parameter Black level (blacklevel) 0.050000 0.000000 0.500000 0.010000
RetroArch [INFO] :: Found #pragma parameter Ambient (ambient) 0.000000 0.000000 0.500000 0.010000
RetroArch [INFO] :: Found #pragma parameter BGR (BGR) 0.000000 0.000000 1.000000 1.000000
RetroArch [INFO] :: Loading Cg shader: "c:\Program Files\Libretro\shaders\shaders_cg\handheld\shaders/lcd_cgwg/lcd-grid-v2.cg".
RetroArch [ERROR] :: CG error: The compile returned an error.
RetroArch [ERROR] :: Fragment:
c:\Program Files\Libretro\shaders\shaders_cg\handheld\shaders/lcd_cgwg/lcd-grid-v2.cg(141) : error C1115: unable to find compatible overloaded function "texelFetchOffset(sampler2D, int2, int, int2)"
c:\Program Files\Libretro\shaders\shaders_cg\handheld\shaders/lcd_cgwg/lcd-grid-v2.cg(142) : error C1115: unable to find compatible overloaded function "texelFetchOffset(sampler2D, int2, int, int2)"
c:\Program Files\Libretro\shaders\shaders_cg\handheld\shaders/lcd_cgwg/lcd-grid-v2.cg(143) : error C1115: unable to find compatible overloaded function "texelFetchOffset(sampler2D, int2, int, int2)"
c:\Program Files\Libretro\shaders\shaders_cg\handheld\shaders/lcd_cgwg/lcd-grid-v2.cg(144) : error C1115: unable to find compatible overloaded function "texelFetchOffset(sampler2D, int2, int, int2)"
RetroArch [ERROR] :: Failed to load shaders ...
RetroArch [INFO] :: CG: Destroying programs.
RetroArch [INFO] :: [Cg]: Vertex profile: arbvp1
RetroArch [INFO] :: [Cg]: Fragment profile: arbfp1
RetroArch [INFO] :: Loading stock Cg file.
Setup: Retroarch 1.3.6, Windows 8.1, AMD CPU/GPU
I don’t like the way lcd-grid.cgp looks, and it gives each pixel more than three subpixels, so I’d like to figure this out. Does v2 work for anyone else?
Complete log file is attached (I load Advance Wars without any shaders, try to apply lcd-grid-v2.cgp, then quit). log.zip (5.44 KB)