CG to GLSL conversion failure

I am running Ubuntu… I have the common shader pack, the nvidia cg toolkit, and i insured that i had python3 installed as well. I get a bunch of empty directories… and a list of failed files in my terminal.

I’m sure there is probably some more useful information I can provide, but I know next to nothing about python scripting or the Cg / Glsl scripting languages.

This is the scripts output to the terminal.


Dirpath: ./xmlshaders
./shaders/blinky.cg -> ./xmlshaders/blinky.glsl ... failed!
Dirpath: ./xmlshaders
./shaders/stock.cg -> ./xmlshaders/stock.glsl ... failed!
Dirpath: ./xmlshaders
./shaders/scanline.cg -> ./xmlshaders/scanline.glsl ... failed!
Dirpath: ./xmlshaders
./shaders/5xbr-retro.cg -> ./xmlshaders/5xbr-retro.glsl ... failed!
Dirpath: ./xmlshaders
./shaders/pixellate.cg -> ./xmlshaders/pixellate.glsl ... failed!
Dirpath: ./xmlshaders
'utf-8' codec can't decode byte 0xf1 in position 134: invalid continuation byte
Dirpath: ./xmlshaders
./shaders/bead.cg -> ./xmlshaders/bead.glsl ... failed!
Dirpath: ./xmlshaders/lanczos
./shaders/lanczos/lanczos12.cg -> ./xmlshaders/lanczos/lanczos12.glsl ... failed!
Dirpath: ./xmlshaders/lanczos
./shaders/lanczos/lanczos16.cg -> ./xmlshaders/lanczos/lanczos16.glsl ... failed!
Dirpath: ./xmlshaders/lanczos
./shaders/lanczos/lanczos4.cg -> ./xmlshaders/lanczos/lanczos4.glsl ... failed!
Dirpath: ./xmlshaders/lanczos
./shaders/lanczos/lanczos6.cg -> ./xmlshaders/lanczos/lanczos6.glsl ... failed!
Dirpath: ./xmlshaders/hqx
./shaders/hqx/hq4x.cg -> ./xmlshaders/hqx/hq4x.glsl ... failed!
Dirpath: ./xmlshaders/hqx
./shaders/hqx/hq2x.cg -> ./xmlshaders/hqx/hq2x.glsl ... failed!
Dirpath: ./xmlshaders/xsai
./shaders/xsai/super-2xsai.cg -> ./xmlshaders/xsai/super-2xsai.glsl ... failed!
Dirpath: ./xmlshaders/handheld
./shaders/handheld/lcd3x.cg -> ./xmlshaders/handheld/lcd3x.glsl ... failed!
Dirpath: ./xmlshaders/handheld
./shaders/handheld/dot.cg -> ./xmlshaders/handheld/dot.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader
./shaders/handheld/lcd-shader/lcd-pass-0.cg -> ./xmlshaders/handheld/lcd-shader/lcd-pass-0.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader
./shaders/handheld/lcd-shader/lcd-pass-3.cg -> ./xmlshaders/handheld/lcd-shader/lcd-pass-3.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader
./shaders/handheld/lcd-shader/lcd-pass-2.cg -> ./xmlshaders/handheld/lcd-shader/lcd-pass-2.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader
./shaders/handheld/lcd-shader/lcd-pass-1.cg -> ./xmlshaders/handheld/lcd-shader/lcd-pass-1.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader
Dirpath: ./xmlshaders/handheld/lcd-shader/backup-2
./shaders/handheld/lcd-shader/backup-2/lcd-pass-4.cg -> ./xmlshaders/handheld/lcd-shader/backup-2/lcd-pass-4.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup-2
./shaders/handheld/lcd-shader/backup-2/lcd-pass-0.cg -> ./xmlshaders/handheld/lcd-shader/backup-2/lcd-pass-0.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup-2
./shaders/handheld/lcd-shader/backup-2/lcd-pass-3.cg -> ./xmlshaders/handheld/lcd-shader/backup-2/lcd-pass-3.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup-2
./shaders/handheld/lcd-shader/backup-2/lcd-pass-2.cg -> ./xmlshaders/handheld/lcd-shader/backup-2/lcd-pass-2.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup-2
./shaders/handheld/lcd-shader/backup-2/lcd-pass-1.cg -> ./xmlshaders/handheld/lcd-shader/backup-2/lcd-pass-1.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup-2
./shaders/handheld/lcd-shader/backup-2/lcd-pass-5.cg -> ./xmlshaders/handheld/lcd-shader/backup-2/lcd-pass-5.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup-2
Dirpath: ./xmlshaders/handheld/lcd-shader/backup-3
./shaders/handheld/lcd-shader/backup-3/lcd-pass-0.cg -> ./xmlshaders/handheld/lcd-shader/backup-3/lcd-pass-0.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup-3
./shaders/handheld/lcd-shader/backup-3/lcd-pass-3.cg -> ./xmlshaders/handheld/lcd-shader/backup-3/lcd-pass-3.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup-3
./shaders/handheld/lcd-shader/backup-3/lcd-pass-2.cg -> ./xmlshaders/handheld/lcd-shader/backup-3/lcd-pass-2.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup-3
./shaders/handheld/lcd-shader/backup-3/lcd-pass-1.cg -> ./xmlshaders/handheld/lcd-shader/backup-3/lcd-pass-1.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup-3
Dirpath: ./xmlshaders/handheld/lcd-shader/backup
./shaders/handheld/lcd-shader/backup/lcd-pass-4.cg -> ./xmlshaders/handheld/lcd-shader/backup/lcd-pass-4.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup
./shaders/handheld/lcd-shader/backup/lcd-pass-0.cg -> ./xmlshaders/handheld/lcd-shader/backup/lcd-pass-0.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup
./shaders/handheld/lcd-shader/backup/lcd-pass-3.cg -> ./xmlshaders/handheld/lcd-shader/backup/lcd-pass-3.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup
./shaders/handheld/lcd-shader/backup/lcd-pass-2.cg -> ./xmlshaders/handheld/lcd-shader/backup/lcd-pass-2.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup
./shaders/handheld/lcd-shader/backup/lcd-pass-1.cg -> ./xmlshaders/handheld/lcd-shader/backup/lcd-pass-1.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup
./shaders/handheld/lcd-shader/backup/lcd-pass-5.cg -> ./xmlshaders/handheld/lcd-shader/backup/lcd-pass-5.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd-shader/backup
Dirpath: ./xmlshaders/handheld/dmg-shader
Dirpath: ./xmlshaders/handheld/dmg-shader
Dirpath: ./xmlshaders/handheld/dmg-shader
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-2x
./shaders/handheld/dmg-shader/shader-2x/gb-pass-0.cg -> ./xmlshaders/handheld/dmg-shader/shader-2x/gb-pass-0.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-2x
./shaders/handheld/dmg-shader/shader-2x/gb-pass-1.cg -> ./xmlshaders/handheld/dmg-shader/shader-2x/gb-pass-1.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-2x
./shaders/handheld/dmg-shader/shader-2x/gb-pass-2.cg -> ./xmlshaders/handheld/dmg-shader/shader-2x/gb-pass-2.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-2x
./shaders/handheld/dmg-shader/shader-2x/gb-pass-4.cg -> ./xmlshaders/handheld/dmg-shader/shader-2x/gb-pass-4.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-2x
./shaders/handheld/dmg-shader/shader-2x/gb-pass-5.cg -> ./xmlshaders/handheld/dmg-shader/shader-2x/gb-pass-5.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-2x
./shaders/handheld/dmg-shader/shader-2x/gb-pass-3.cg -> ./xmlshaders/handheld/dmg-shader/shader-2x/gb-pass-3.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-4x
./shaders/handheld/dmg-shader/shader-4x/gb-pass-0.cg -> ./xmlshaders/handheld/dmg-shader/shader-4x/gb-pass-0.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-4x
./shaders/handheld/dmg-shader/shader-4x/gb-pass-1.cg -> ./xmlshaders/handheld/dmg-shader/shader-4x/gb-pass-1.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-4x
./shaders/handheld/dmg-shader/shader-4x/gb-pass-2.cg -> ./xmlshaders/handheld/dmg-shader/shader-4x/gb-pass-2.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-4x
./shaders/handheld/dmg-shader/shader-4x/gb-pass-4.cg -> ./xmlshaders/handheld/dmg-shader/shader-4x/gb-pass-4.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-4x
./shaders/handheld/dmg-shader/shader-4x/gb-pass-5.cg -> ./xmlshaders/handheld/dmg-shader/shader-4x/gb-pass-5.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-4x
./shaders/handheld/dmg-shader/shader-4x/gb-pass-3.cg -> ./xmlshaders/handheld/dmg-shader/shader-4x/gb-pass-3.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-3x
./shaders/handheld/dmg-shader/shader-3x/gb-pass-0.cg -> ./xmlshaders/handheld/dmg-shader/shader-3x/gb-pass-0.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-3x
./shaders/handheld/dmg-shader/shader-3x/gb-pass-1.cg -> ./xmlshaders/handheld/dmg-shader/shader-3x/gb-pass-1.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-3x
./shaders/handheld/dmg-shader/shader-3x/gb-pass-2.cg -> ./xmlshaders/handheld/dmg-shader/shader-3x/gb-pass-2.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-3x
./shaders/handheld/dmg-shader/shader-3x/gb-pass-4.cg -> ./xmlshaders/handheld/dmg-shader/shader-3x/gb-pass-4.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-3x
./shaders/handheld/dmg-shader/shader-3x/gb-pass-5.cg -> ./xmlshaders/handheld/dmg-shader/shader-3x/gb-pass-5.glsl ... failed!
Dirpath: ./xmlshaders/handheld/dmg-shader/shader-3x
./shaders/handheld/dmg-shader/shader-3x/gb-pass-3.cg -> ./xmlshaders/handheld/dmg-shader/shader-3x/gb-pass-3.glsl ... failed!
Dirpath: ./xmlshaders/handheld/gameboy
Dirpath: ./xmlshaders/handheld/gameboy/shader-files
./shaders/handheld/gameboy/shader-files/gb-pass-0.cg -> ./xmlshaders/handheld/gameboy/shader-files/gb-pass-0.glsl ... failed!
Dirpath: ./xmlshaders/handheld/gameboy/shader-files
./shaders/handheld/gameboy/shader-files/gb-pass-1.cg -> ./xmlshaders/handheld/gameboy/shader-files/gb-pass-1.glsl ... failed!
Dirpath: ./xmlshaders/handheld/gameboy/shader-files
./shaders/handheld/gameboy/shader-files/gb-pass-2.cg -> ./xmlshaders/handheld/gameboy/shader-files/gb-pass-2.glsl ... failed!
Dirpath: ./xmlshaders/handheld/gameboy/shader-files
./shaders/handheld/gameboy/shader-files/gb-pass-4.cg -> ./xmlshaders/handheld/gameboy/shader-files/gb-pass-4.glsl ... failed!
Dirpath: ./xmlshaders/handheld/gameboy/shader-files
./shaders/handheld/gameboy/shader-files/gb-pass-3.cg -> ./xmlshaders/handheld/gameboy/shader-files/gb-pass-3.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd_cgwg
./shaders/handheld/lcd_cgwg/motionblur-simple.cg -> ./xmlshaders/handheld/lcd_cgwg/motionblur-simple.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd_cgwg
./shaders/handheld/lcd_cgwg/lcd-grid.cg -> ./xmlshaders/handheld/lcd_cgwg/lcd-grid.glsl ... failed!
Dirpath: ./xmlshaders/handheld/lcd_cgwg
Dirpath: ./xmlshaders/eagle
./shaders/eagle/super-eagle.cg -> ./xmlshaders/eagle/super-eagle.glsl ... failed!
Dirpath: ./xmlshaders/xbr-hybrid
./shaders/xbr-hybrid/2xbr-hybrid-v2.cg -> ./xmlshaders/xbr-hybrid/2xbr-hybrid-v2.glsl ... failed!
Dirpath: ./xmlshaders/xbr-hybrid
./shaders/xbr-hybrid/2xbr-hybrid-sharp.cg -> ./xmlshaders/xbr-hybrid/2xbr-hybrid-sharp.glsl ... failed!
Dirpath: ./xmlshaders/xbr-hybrid
./shaders/xbr-hybrid/2xbr-hybrid-v4-gamma.cg -> ./xmlshaders/xbr-hybrid/2xbr-hybrid-v4-gamma.glsl ... failed!
Dirpath: ./xmlshaders/xbr-hybrid
./shaders/xbr-hybrid/2xbr-hybrid-v4.cg -> ./xmlshaders/xbr-hybrid/2xbr-hybrid-v4.glsl ... failed!
Dirpath: ./xmlshaders/xbr-hybrid
./shaders/xbr-hybrid/2xbr-hybrid-v2-gamma.cg -> ./xmlshaders/xbr-hybrid/2xbr-hybrid-v2-gamma.glsl ... failed!
Dirpath: ./xmlshaders/xbr-hybrid
./shaders/xbr-hybrid/2xbr-hybrid-v4b.cg -> ./xmlshaders/xbr-hybrid/2xbr-hybrid-v4b.glsl ... failed!
Dirpath: ./xmlshaders/xbr-hybrid
./shaders/xbr-hybrid/2xbr-hybrid-v5-gamma.cg -> ./xmlshaders/xbr-hybrid/2xbr-hybrid-v5-gamma.glsl ... failed!
Dirpath: ./xmlshaders/xbr-hybrid
./shaders/xbr-hybrid/2xbr-hybrid.cg -> ./xmlshaders/xbr-hybrid/2xbr-hybrid.glsl ... failed!
Dirpath: ./xmlshaders/test/optimizations
./shaders/test/optimizations/lanczos16.cg -> ./xmlshaders/test/optimizations/lanczos16.glsl ... failed!
Dirpath: ./xmlshaders/test/cgp
Dirpath: ./xmlshaders/test/cgp
Dirpath: ./xmlshaders/test/lab/misc
./shaders/test/lab/misc/cam02-ucs-forward.cg -> ./xmlshaders/test/lab/misc/cam02-ucs-forward.glsl ... failed!
Dirpath: ./xmlshaders/test/lab/misc
./shaders/test/lab/misc/sharpness.cg -> ./xmlshaders/test/lab/misc/sharpness.glsl ... failed!
Dirpath: ./xmlshaders/test/lab/misc
./shaders/test/lab/misc/cam02-ucs-reverse.cg -> ./xmlshaders/test/lab/misc/cam02-ucs-reverse.glsl ... failed!
Dirpath: ./xmlshaders/test/lab/ddt
./shaders/test/lab/ddt/ddt-crosshd.cg -> ./xmlshaders/test/lab/ddt/ddt-crosshd.glsl ... failed!
Dirpath: ./xmlshaders/test/lab/ddt
./shaders/test/lab/ddt/ddt-cxscale.cg -> ./xmlshaders/test/lab/ddt/ddt-cxscale.glsl ... failed!
Dirpath: ./xmlshaders/test/lab/ddt
./shaders/test/lab/ddt/crt-ddt.cg -> ./xmlshaders/test/lab/ddt/crt-ddt.glsl ... failed!
Dirpath: ./xmlshaders/test/lab/xbr
./shaders/test/lab/xbr/2xbr-lv1-pass1.cg -> ./xmlshaders/test/lab/xbr/2xbr-lv1-pass1.glsl ... failed!
Dirpath: ./xmlshaders/test/lab/xbr
./shaders/test/lab/xbr/2xbr-lv1-c-pass0.cg -> ./xmlshaders/test/lab/xbr/2xbr-lv1-c-pass0.glsl ... failed!
Dirpath: ./xmlshaders/test/lab/xbr
./shaders/test/lab/xbr/xbr-lv2-scale-agnostic.cg -> ./xmlshaders/test/lab/xbr/xbr-lv2-scale-agnostic.glsl ... failed!
Dirpath: ./xmlshaders/misc
./shaders/misc/cmyk-halftone-dot.cg -> ./xmlshaders/misc/cmyk-halftone-dot.glsl ... failed!
Dirpath: ./xmlshaders/misc
./shaders/misc/mcgreen.cg -> ./xmlshaders/misc/mcgreen.glsl ... failed!
Dirpath: ./xmlshaders/misc
./shaders/misc/nohalo.cg -> ./xmlshaders/misc/nohalo.glsl ... failed!
Dirpath: ./xmlshaders/crt
./shaders/crt/crt.cg -> ./xmlshaders/crt/crt.glsl ... failed!
Dirpath: ./xmlshaders/crt
./shaders/crt/4xbr-hybrid-crt.cg -> ./xmlshaders/crt/4xbr-hybrid-crt.glsl ... failed!
Dirpath: ./xmlshaders/crt
./shaders/crt/crt-caligari.cg -> ./xmlshaders/crt/crt-caligari.glsl ... failed!
Dirpath: ./xmlshaders/crt
./shaders/crt/tv-highcontrast-hd.cg -> ./xmlshaders/crt/tv-highcontrast-hd.glsl ... failed!
Dirpath: ./xmlshaders/crt
./shaders/crt/4xbr-hybrid-crt-b.cg -> ./xmlshaders/crt/4xbr-hybrid-crt-b.glsl ... failed!
Dirpath: ./xmlshaders/crt
./shaders/crt/snes-hires-blend.cg -> ./xmlshaders/crt/snes-hires-blend.glsl ... failed!
Dirpath: ./xmlshaders/crt
./shaders/crt/crt-reverse-aa.cg -> ./xmlshaders/crt/crt-reverse-aa.glsl ... failed!
Dirpath: ./xmlshaders/crt
./shaders/crt/phosphor-normalgamma.cg -> ./xmlshaders/crt/phosphor-normalgamma.glsl ... failed!
Dirpath: ./xmlshaders/crt
./shaders/crt/crt-geom-flat.cg -> ./xmlshaders/crt/crt-geom-flat.glsl ... failed!
Dirpath: ./xmlshaders/crt
./shaders/crt/crt-highgamma.cg -> ./xmlshaders/crt/crt-highgamma.glsl ... failed!
Dirpath: ./xmlshaders/crt
./shaders/crt/crt-cgwg.cg -> ./xmlshaders/crt/crt-cgwg.glsl ... failed!
Dirpath: ./xmlshaders/crt
./shaders/crt/crt-normalgamma.cg -> ./xmlshaders/crt/crt-normalgamma.glsl ... failed!
Dirpath: ./xmlshaders/crt
./shaders/crt/crt-curved.cg -> ./xmlshaders/crt/crt-curved.glsl ... failed!
Dirpath: ./xmlshaders/crt
./shaders/crt/tv-highcontrast-hd-1152x672.cg -> ./xmlshaders/crt/tv-highcontrast-hd-1152x672.glsl ... failed!
Dirpath: ./xmlshaders/crt
./shaders/crt/phosphor.cg -> ./xmlshaders/crt/phosphor.glsl ... failed!
Dirpath: ./xmlshaders/crt/phosphorlut
./shaders/crt/phosphorlut/bsnes-gamma-ramp.cg -> ./xmlshaders/crt/phosphorlut/bsnes-gamma-ramp.glsl ... failed!
Dirpath: ./xmlshaders/crt/phosphorlut
./shaders/crt/phosphorlut/gaussian-vert.cg -> ./xmlshaders/crt/phosphorlut/gaussian-vert.glsl ... failed!
Dirpath: ./xmlshaders/crt/phosphorlut
./shaders/crt/phosphorlut/phosphorlut-pass0.cg -> ./xmlshaders/crt/phosphorlut/phosphorlut-pass0.glsl ... failed!
Dirpath: ./xmlshaders/crt/phosphorlut
./shaders/crt/phosphorlut/phosphorlut-pass1.cg -> ./xmlshaders/crt/phosphorlut/phosphorlut-pass1.glsl ... failed!
Dirpath: ./xmlshaders/crt/phosphorlut
./shaders/crt/phosphorlut/gaussian-horiz.cg -> ./xmlshaders/crt/phosphorlut/gaussian-horiz.glsl ... failed!
Dirpath: ./xmlshaders/crt/crt-interlaced-halation
./shaders/crt/crt-interlaced-halation/crt-interlaced-halation-pass1.cg -> ./xmlshaders/crt/crt-interlaced-halation/crt-interlaced-halation-pass1.glsl ... failed!
Dirpath: ./xmlshaders/crt/crt-interlaced-halation
./shaders/crt/crt-interlaced-halation/crt-interlaced-halation-pass2.cg -> ./xmlshaders/crt/crt-interlaced-halation/crt-interlaced-halation-pass2.glsl ... failed!
Dirpath: ./xmlshaders/crt/crt-interlaced-halation
./shaders/crt/crt-interlaced-halation/crt-interlaced-halation-pass0.cg -> ./xmlshaders/crt/crt-interlaced-halation/crt-interlaced-halation-pass0.glsl ... failed!
Dirpath: ./xmlshaders/crt/crt-interlaced-halation
Dirpath: ./xmlshaders/warp
./shaders/warp/dilation.cg -> ./xmlshaders/warp/dilation.glsl ... failed!
Dirpath: ./xmlshaders/warp
./shaders/warp/erosion.cg -> ./xmlshaders/warp/erosion.glsl ... failed!
Dirpath: ./xmlshaders/borders/aspect
./shaders/borders/aspect/border-aspect.cg -> ./xmlshaders/borders/aspect/border-aspect.glsl ... failed!
Dirpath: ./xmlshaders/borders/left-portrait
./shaders/borders/left-portrait/scale-2x.cg -> ./xmlshaders/borders/left-portrait/scale-2x.glsl ... failed!
Dirpath: ./xmlshaders/borders/left-portrait
./shaders/borders/left-portrait/non-fbo.cg -> ./xmlshaders/borders/left-portrait/non-fbo.glsl ... failed!
Dirpath: ./xmlshaders/borders/left-portrait
./shaders/borders/left-portrait/scale-1x.cg -> ./xmlshaders/borders/left-portrait/scale-1x.glsl ... failed!
Dirpath: ./xmlshaders/borders/left-portrait
./shaders/borders/left-portrait/scale-4x.cg -> ./xmlshaders/borders/left-portrait/scale-4x.glsl ... failed!
Dirpath: ./xmlshaders/borders/centered
./shaders/borders/centered/fbo-scale-1x.cg -> ./xmlshaders/borders/centered/fbo-scale-1x.glsl ... failed!
Dirpath: ./xmlshaders/borders/centered
./shaders/borders/centered/water-scale-1x.cg -> ./xmlshaders/borders/centered/water-scale-1x.glsl ... failed!
Dirpath: ./xmlshaders/borders/centered
./shaders/borders/centered/fbo-scale-4x.cg -> ./xmlshaders/borders/centered/fbo-scale-4x.glsl ... failed!
Dirpath: ./xmlshaders/borders/centered
./shaders/borders/centered/non-fbo.cg -> ./xmlshaders/borders/centered/non-fbo.glsl ... failed!
Dirpath: ./xmlshaders/borders/centered
./shaders/borders/centered/water-scale-4x.cg -> ./xmlshaders/borders/centered/water-scale-4x.glsl ... failed!
Dirpath: ./xmlshaders/borders/centered
./shaders/borders/centered/water-non-fbo.cg -> ./xmlshaders/borders/centered/water-non-fbo.glsl ... failed!
Dirpath: ./xmlshaders/borders/centered
./shaders/borders/centered/water-scale-2x.cg -> ./xmlshaders/borders/centered/water-scale-2x.glsl ... failed!
Dirpath: ./xmlshaders/borders/centered
./shaders/borders/centered/fbo-scale-2x.cg -> ./xmlshaders/borders/centered/fbo-scale-2x.glsl ... failed!
Dirpath: ./xmlshaders/xsal
./shaders/xsal/2xsal.cg -> ./xmlshaders/xsal/2xsal.glsl ... failed!
Dirpath: ./xmlshaders/sabr
./shaders/sabr/sabr-v1.1.cg -> ./xmlshaders/sabr/sabr-v1.1.glsl ... failed!
Dirpath: ./xmlshaders/sabr
./shaders/sabr/sabr-v3.0.cg -> ./xmlshaders/sabr/sabr-v3.0.glsl ... failed!
Dirpath: ./xmlshaders/waterpaint
./shaders/waterpaint/waterpaint-hc.cg -> ./xmlshaders/waterpaint/waterpaint-hc.glsl ... failed!
Dirpath: ./xmlshaders/waterpaint
./shaders/waterpaint/water.cg -> ./xmlshaders/waterpaint/water.glsl ... failed!
Dirpath: ./xmlshaders/waterpaint
./shaders/waterpaint/waterpaint.cg -> ./xmlshaders/waterpaint/waterpaint.glsl ... failed!
Dirpath: ./xmlshaders/ddt
./shaders/ddt/ddt-extended.cg -> ./xmlshaders/ddt/ddt-extended.glsl ... failed!
Dirpath: ./xmlshaders/ddt
./shaders/ddt/ddt.cg -> ./xmlshaders/ddt/ddt.glsl ... failed!
Dirpath: ./xmlshaders/ddt
./shaders/ddt/ddt-waterpaint.cg -> ./xmlshaders/ddt/ddt-waterpaint.glsl ... failed!
Dirpath: ./xmlshaders/quad
./shaders/quad/quad_interp.cg -> ./xmlshaders/quad/quad_interp.glsl ... failed!
Dirpath: ./xmlshaders/quad
./shaders/quad/quad-interp-hd.cg -> ./xmlshaders/quad/quad-interp-hd.glsl ... failed!
Dirpath: ./xmlshaders/quad
./shaders/quad/quad-interp-hd-768.cg -> ./xmlshaders/quad/quad-interp-hd-768.glsl ... failed!
Dirpath: ./xmlshaders/ntsc
./shaders/ntsc/ntsc-gauss-pass.cg -> ./xmlshaders/ntsc/ntsc-gauss-pass.glsl ... failed!
Dirpath: ./xmlshaders/ntsc
./shaders/ntsc/ntsc-pass2-svideo-2phase.cg -> ./xmlshaders/ntsc/ntsc-pass2-svideo-2phase.glsl ... failed!
Dirpath: ./xmlshaders/ntsc
./shaders/ntsc/ntsc-pass1-2phase.cg -> ./xmlshaders/ntsc/ntsc-pass1-2phase.glsl ... failed!
Dirpath: ./xmlshaders/ntsc
./shaders/ntsc/ntsc-pass3.cg -> ./xmlshaders/ntsc/ntsc-pass3.glsl ... failed!
Dirpath: ./xmlshaders/ntsc
./shaders/ntsc/ntsc-pass3-gamma.cg -> ./xmlshaders/ntsc/ntsc-pass3-gamma.glsl ... failed!
Dirpath: ./xmlshaders/ntsc
./shaders/ntsc/ntsc-pass2-3phase.cg -> ./xmlshaders/ntsc/ntsc-pass2-3phase.glsl ... failed!
Dirpath: ./xmlshaders/ntsc
./shaders/ntsc/ntsc-pass2-svideo-3phase.cg -> ./xmlshaders/ntsc/ntsc-pass2-svideo-3phase.glsl ... failed!
Dirpath: ./xmlshaders/ntsc
./shaders/ntsc/ntsc-stock.cg -> ./xmlshaders/ntsc/ntsc-stock.glsl ... failed!
Dirpath: ./xmlshaders/ntsc
./shaders/ntsc/ntsc-pass2-2phase.cg -> ./xmlshaders/ntsc/ntsc-pass2-2phase.glsl ... failed!
Dirpath: ./xmlshaders/ntsc
./shaders/ntsc/ntsc-pass1-3phase.cg -> ./xmlshaders/ntsc/ntsc-pass1-3phase.glsl ... failed!
Dirpath: ./xmlshaders/ntsc
Dirpath: ./xmlshaders/ntsc
Dirpath: ./xmlshaders/ntsc
Dirpath: ./xmlshaders/ntsc
Dirpath: ./xmlshaders/ntsc
Dirpath: ./xmlshaders/ntsc
Dirpath: ./xmlshaders/ntsc
Dirpath: ./xmlshaders/ntsc
Dirpath: ./xmlshaders/ntsc
Dirpath: ./xmlshaders/ntsc
Dirpath: ./xmlshaders/motionblur
./shaders/motionblur/motionblur-simple.cg -> ./xmlshaders/motionblur/motionblur-simple.glsl ... failed!
Dirpath: ./xmlshaders/motionblur
./shaders/motionblur/motionblur-blue.cg -> ./xmlshaders/motionblur/motionblur-blue.glsl ... failed!
Dirpath: ./xmlshaders/motionblur
./shaders/motionblur/braid-rewind.cg -> ./xmlshaders/motionblur/braid-rewind.glsl ... failed!
Dirpath: ./xmlshaders/xsoft
./shaders/xsoft/4xsoft-hd-792p.cg -> ./xmlshaders/xsoft/4xsoft-hd-792p.glsl ... failed!
Dirpath: ./xmlshaders/xsoft
./shaders/xsoft/4xsoft-hd.cg -> ./xmlshaders/xsoft/4xsoft-hd.glsl ... failed!
Dirpath: ./xmlshaders/xsoft
./shaders/xsoft/4xsoft-hd-var1-592p.cg -> ./xmlshaders/xsoft/4xsoft-hd-var1-592p.glsl ... failed!
Dirpath: ./xmlshaders/xsoft
./shaders/xsoft/4xsoft-var1.cg -> ./xmlshaders/xsoft/4xsoft-var1.glsl ... failed!
Dirpath: ./xmlshaders/xsoft
./shaders/xsoft/4xsoft-hd-752p.cg -> ./xmlshaders/xsoft/4xsoft-hd-752p.glsl ... failed!
Dirpath: ./xmlshaders/xsoft
./shaders/xsoft/4xsoft-hd-var1.cg -> ./xmlshaders/xsoft/4xsoft-hd-var1.glsl ... failed!
Dirpath: ./xmlshaders/xsoft
./shaders/xsoft/4xsoft-hd-832p.cg -> ./xmlshaders/xsoft/4xsoft-hd-832p.glsl ... failed!
Dirpath: ./xmlshaders/xsoft
./shaders/xsoft/4xsoft-hd-768p.cg -> ./xmlshaders/xsoft/4xsoft-hd-768p.glsl ... failed!
Dirpath: ./xmlshaders/xsoft
./shaders/xsoft/4xsoft-hd-672p.cg -> ./xmlshaders/xsoft/4xsoft-hd-672p.glsl ... failed!
Dirpath: ./xmlshaders/xsoft
./shaders/xsoft/4xsoft.cg -> ./xmlshaders/xsoft/4xsoft.glsl ... failed!
Dirpath: ./xmlshaders/xsoft
./shaders/xsoft/4xsoft-hd-592p.cg -> ./xmlshaders/xsoft/4xsoft-hd-592p.glsl ... failed!
Dirpath: ./xmlshaders/xsoft
./shaders/xsoft/4xsoft-hd-var1-752p.cg -> ./xmlshaders/xsoft/4xsoft-hd-var1-752p.glsl ... failed!
Dirpath: ./xmlshaders/neon
./shaders/neon/neon-variation-1.cg -> ./xmlshaders/neon/neon-variation-1.glsl ... failed!
Dirpath: ./xmlshaders/scalex
./shaders/scalex/scale2xplus.cg -> ./xmlshaders/scalex/scale2xplus.glsl ... failed!
Dirpath: ./xmlshaders/auto-box
./shaders/auto-box/sharpen-lighter-box.cg -> ./xmlshaders/auto-box/sharpen-lighter-box.glsl ... failed!
Dirpath: ./xmlshaders/auto-box
./shaders/auto-box/box-max.cg -> ./xmlshaders/auto-box/box-max.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/5xbr-v3.8c.cg -> ./xmlshaders/xbr/5xbr-v3.8c.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/xbr-dilation.cg -> ./xmlshaders/xbr/xbr-dilation.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/5xbr-v3.7d.cg -> ./xmlshaders/xbr/5xbr-v3.7d.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/5xbr-v3.7b.cg -> ./xmlshaders/xbr/5xbr-v3.7b.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/5xbr-v3.8d.cg -> ./xmlshaders/xbr/5xbr-v3.8d.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/xbr-v3.8c-gamma.cg -> ./xmlshaders/xbr/xbr-v3.8c-gamma.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/4xbr-v4.0.cg -> ./xmlshaders/xbr/4xbr-v4.0.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/5xbr.cg -> ./xmlshaders/xbr/5xbr.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/5xbr-v3.7c-lq.cg -> ./xmlshaders/xbr/5xbr-v3.7c-lq.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/4xbr.cg -> ./xmlshaders/xbr/4xbr.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/2xbr.cg -> ./xmlshaders/xbr/2xbr.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/5xbr-v1.1.cg -> ./xmlshaders/xbr/5xbr-v1.1.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/2xbr-v3.7c.cg -> ./xmlshaders/xbr/2xbr-v3.7c.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/2xbr-v2.2.cg -> ./xmlshaders/xbr/2xbr-v2.2.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/2xbr-v3.8c.cg -> ./xmlshaders/xbr/2xbr-v3.8c.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/3xbr-v3.8d.cg -> ./xmlshaders/xbr/3xbr-v3.8d.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/3xbr.cg -> ./xmlshaders/xbr/3xbr.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/xbr-v3.8b-gamma.cg -> ./xmlshaders/xbr/xbr-v3.8b-gamma.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/2xbr-v3.8a.cg -> ./xmlshaders/xbr/2xbr-v3.8a.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/5xbr-v3.8b.cg -> ./xmlshaders/xbr/5xbr-v3.8b.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/2xbr-v3.8b.cg -> ./xmlshaders/xbr/2xbr-v3.8b.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/5xbr-v3.7c-plus-crt.cg -> ./xmlshaders/xbr/5xbr-v3.7c-plus-crt.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/4xbr-v3.8a.cg -> ./xmlshaders/xbr/4xbr-v3.8a.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/2xbr-v3.8d.cg -> ./xmlshaders/xbr/2xbr-v3.8d.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/4xbr-v3.9c.cg -> ./xmlshaders/xbr/4xbr-v3.9c.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/5xbr-v4.0-noblend.cg -> ./xmlshaders/xbr/5xbr-v4.0-noblend.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/3xbr-v3.8b.cg -> ./xmlshaders/xbr/3xbr-v3.8b.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/xbr-v3.8a-gamma.cg -> ./xmlshaders/xbr/xbr-v3.8a-gamma.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/2xbr-v3.7c-dark.cg -> ./xmlshaders/xbr/2xbr-v3.7c-dark.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/3xbr-v3.8a.cg -> ./xmlshaders/xbr/3xbr-v3.8a.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/4xbr-v1.1.cg -> ./xmlshaders/xbr/4xbr-v1.1.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/5xbr-v3.7a.cg -> ./xmlshaders/xbr/5xbr-v3.7a.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/3xbr-v3.8c.cg -> ./xmlshaders/xbr/3xbr-v3.8c.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/5xbr-v3.7c.cg -> ./xmlshaders/xbr/5xbr-v3.7c.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/4xbr-v3.8b.cg -> ./xmlshaders/xbr/4xbr-v3.8b.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/2xbr-v3.7c-light.cg -> ./xmlshaders/xbr/2xbr-v3.7c-light.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/4xbr-v3.8c.cg -> ./xmlshaders/xbr/4xbr-v3.8c.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/5xbr-v3.8a.cg -> ./xmlshaders/xbr/5xbr-v3.8a.glsl ... failed!
Dirpath: ./xmlshaders/xbr
./shaders/xbr/4xbr-v3.8d.cg -> ./xmlshaders/xbr/4xbr-v3.8d.glsl ... failed!
Dirpath: ./xmlshaders/xbr/xbr-lv2-multipass
./shaders/xbr/xbr-lv2-multipass/xbr-lv2-b-pass0.cg -> ./xmlshaders/xbr/xbr-lv2-multipass/xbr-lv2-b-pass0.glsl ... failed!
Dirpath: ./xmlshaders/xbr/xbr-lv2-multipass
./shaders/xbr/xbr-lv2-multipass/xbr-lv2-c-pass0.cg -> ./xmlshaders/xbr/xbr-lv2-multipass/xbr-lv2-c-pass0.glsl ... failed!
Dirpath: ./xmlshaders/xbr/xbr-lv2-multipass
./shaders/xbr/xbr-lv2-multipass/xbr-lv2-pass1.cg -> ./xmlshaders/xbr/xbr-lv2-multipass/xbr-lv2-pass1.glsl ... failed!
Dirpath: ./xmlshaders/xbr/xbr-lv2-multipass
./shaders/xbr/xbr-lv2-multipass/xbr-lv2-noblend-pass1.cg -> ./xmlshaders/xbr/xbr-lv2-multipass/xbr-lv2-noblend-pass1.glsl ... failed!
Dirpath: ./xmlshaders/xbr/xbr-lv2-multipass
./shaders/xbr/xbr-lv2-multipass/xbr-lv2-d-pass0.cg -> ./xmlshaders/xbr/xbr-lv2-multipass/xbr-lv2-d-pass0.glsl ... failed!
Dirpath: ./xmlshaders/xbr/xbr-lv2-multipass
./shaders/xbr/xbr-lv2-multipass/xbr-lv2-a-pass0.cg -> ./xmlshaders/xbr/xbr-lv2-multipass/xbr-lv2-a-pass0.glsl ... failed!
Dirpath: ./xmlshaders/xbr/xbr-lv2-multipass
Dirpath: ./xmlshaders/xbr/xbr-lv2-multipass
Dirpath: ./xmlshaders/xbr/xbr-lv2-multipass
Dirpath: ./xmlshaders/xbr/xbr-lv2-multipass
Dirpath: ./xmlshaders/xbr/xbr-lv2-multipass
Dirpath: ./xmlshaders/xbr/xbr-lv2-multipass
Dirpath: ./xmlshaders/xbr/xbr-lv2-multipass
Dirpath: ./xmlshaders/xbr/xbr-lv2-multipass
Dirpath: ./xmlshaders/xbr/xbr-lv2-multipass
Dirpath: ./xmlshaders/xbr/hlsl
./shaders/xbr/hlsl/5xbr-v3.7a.cg -> ./xmlshaders/xbr/hlsl/5xbr-v3.7a.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/2xbr-v2.1.cg -> ./xmlshaders/xbr/legacy/2xbr-v2.1.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/2xbr-v2.cg -> ./xmlshaders/xbr/legacy/2xbr-v2.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/3xbr-v2.1.cg -> ./xmlshaders/xbr/legacy/3xbr-v2.1.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/5xbr-v3.2.cg -> ./xmlshaders/xbr/legacy/5xbr-v3.2.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/5xbr-v2.cg -> ./xmlshaders/xbr/legacy/5xbr-v2.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/3xbr-v2.cg -> ./xmlshaders/xbr/legacy/3xbr-v2.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/5xbr-v3.5.cg -> ./xmlshaders/xbr/legacy/5xbr-v3.5.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/5xbr-v2.1.cg -> ./xmlshaders/xbr/legacy/5xbr-v2.1.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/5xbr-v3.6b.cg -> ./xmlshaders/xbr/legacy/5xbr-v3.6b.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/5xbr-v3.5a.cg -> ./xmlshaders/xbr/legacy/5xbr-v3.5a.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/5xbr-v3.5-plus-crt.cg -> ./xmlshaders/xbr/legacy/5xbr-v3.5-plus-crt.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/2xbr-v3.5a.cg -> ./xmlshaders/xbr/legacy/2xbr-v3.5a.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/5xbr-v3.3.cg -> ./xmlshaders/xbr/legacy/5xbr-v3.3.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/5xbr-v3.6a.cg -> ./xmlshaders/xbr/legacy/5xbr-v3.6a.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/4xbr-v3.5-plus-crt.cg -> ./xmlshaders/xbr/legacy/4xbr-v3.5-plus-crt.glsl ... failed!
Dirpath: ./xmlshaders/xbr/legacy
./shaders/xbr/legacy/5xbr-v3.6c.cg -> ./xmlshaders/xbr/legacy/5xbr-v3.6c.glsl ... failed!
Dirpath: ./xmlshaders/bicubic
./shaders/bicubic/bicubic-sharper.cg -> ./xmlshaders/bicubic/bicubic-sharper.glsl ... failed!
Dirpath: ./xmlshaders/bicubic
./shaders/bicubic/bicubic-fast.cg -> ./xmlshaders/bicubic/bicubic-fast.glsl ... failed!
Dirpath: ./xmlshaders/bicubic
./shaders/bicubic/bicubic-sharp.cg -> ./xmlshaders/bicubic/bicubic-sharp.glsl ... failed!
Dirpath: ./xmlshaders/bicubic
./shaders/bicubic/bicubic-normal.cg -> ./xmlshaders/bicubic/bicubic-normal.glsl ... failed!
Dirpath: ./xmlshaders/anti-aliasing
./shaders/anti-aliasing/fx-aa.cg -> ./xmlshaders/anti-aliasing/fx-aa.glsl ... failed!
Dirpath: ./xmlshaders/anti-aliasing
./shaders/anti-aliasing/reverse-aa.cg -> ./xmlshaders/anti-aliasing/reverse-aa.glsl ... failed!
Dirpath: ./xmlshaders/anti-aliasing
./shaders/anti-aliasing/advanced-aa.cg -> ./xmlshaders/anti-aliasing/advanced-aa.glsl ... failed!
Dirpath: ./xmlshaders/anti-aliasing
./shaders/anti-aliasing/fxaa-edge-detect.cg -> ./xmlshaders/anti-aliasing/fxaa-edge-detect.glsl ... failed!
Dirpath: ./xmlshaders/dithering/mdapt-2p
./shaders/dithering/mdapt-2p/mdapt-pass1.cg -> ./xmlshaders/dithering/mdapt-2p/mdapt-pass1.glsl ... failed!
Dirpath: ./xmlshaders/dithering/mdapt-2p
./shaders/dithering/mdapt-2p/mdapt-pass2.cg -> ./xmlshaders/dithering/mdapt-2p/mdapt-pass2.glsl ... failed!
Dirpath: ./xmlshaders/dithering/mdapt-2p
Dirpath: ./xmlshaders/dithering/mdapt-4p
./shaders/dithering/mdapt-4p/mdapt-pass1.cg -> ./xmlshaders/dithering/mdapt-4p/mdapt-pass1.glsl ... failed!
Dirpath: ./xmlshaders/dithering/mdapt-4p
./shaders/dithering/mdapt-4p/mdapt-pass3.cg -> ./xmlshaders/dithering/mdapt-4p/mdapt-pass3.glsl ... failed!
Dirpath: ./xmlshaders/dithering/mdapt-4p
./shaders/dithering/mdapt-4p/mdapt-pass2.cg -> ./xmlshaders/dithering/mdapt-4p/mdapt-pass2.glsl ... failed!
Dirpath: ./xmlshaders/dithering/mdapt-4p
./shaders/dithering/mdapt-4p/mdapt-pass4.cg -> ./xmlshaders/dithering/mdapt-4p/mdapt-pass4.glsl ... failed!
Dirpath: ./xmlshaders/dithering/mdapt-4p
Dirpath: ./xmlshaders/dithering/mdapt-4p
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/sharpen.cg -> ./xmlshaders/mudlord/sharpen.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/sharpen-medium.cg -> ./xmlshaders/mudlord/sharpen-medium.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/sharpen-light2.cg -> ./xmlshaders/mudlord/sharpen-light2.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/sharpen-light.cg -> ./xmlshaders/mudlord/sharpen-light.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/waterpaint-mudlord.cg -> ./xmlshaders/mudlord/waterpaint-mudlord.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/oldtv-var2.cg -> ./xmlshaders/mudlord/oldtv-var2.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/oldtv-config.cg -> ./xmlshaders/mudlord/oldtv-config.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/oldtv-var4.cg -> ./xmlshaders/mudlord/oldtv-var4.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/blur.cg -> ./xmlshaders/mudlord/blur.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/oldtv-var3.cg -> ./xmlshaders/mudlord/oldtv-var3.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/oldtv-var1.cg -> ./xmlshaders/mudlord/oldtv-var1.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/blur-lighter.cg -> ./xmlshaders/mudlord/blur-lighter.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/toon.cg -> ./xmlshaders/mudlord/toon.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/emboss.cg -> ./xmlshaders/mudlord/emboss.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/mud-mudlord.cg -> ./xmlshaders/mudlord/mud-mudlord.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/sharpen-lighter.cg -> ./xmlshaders/mudlord/sharpen-lighter.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/noise-mudlord.cg -> ./xmlshaders/mudlord/noise-mudlord.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/oldtv.cg -> ./xmlshaders/mudlord/oldtv.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/bloom.cg -> ./xmlshaders/mudlord/bloom.glsl ... failed!
Dirpath: ./xmlshaders/mudlord
./shaders/mudlord/blur-light.cg -> ./xmlshaders/mudlord/blur-light.glsl ... failed!
Dirpath: ./xmlshaders/cgp
Dirpath: ./xmlshaders/cgp
Dirpath: ./xmlshaders/cgp
Dirpath: ./xmlshaders/cgp
Dirpath: ./xmlshaders/cgp
Dirpath: ./xmlshaders/cgp
Dirpath: ./xmlshaders/cgp
Dirpath: ./xmlshaders/cgp
42 shaders converted successfully.
258 shaders failed.
Failed shaders:
./shaders/blinky.cg
./shaders/stock.cg
./shaders/scanline.cg
./shaders/5xbr-retro.cg
./shaders/pixellate.cg
./shaders/quilez.cg
./shaders/bead.cg
./shaders/lanczos/lanczos12.cg
./shaders/lanczos/lanczos16.cg
./shaders/lanczos/lanczos4.cg
./shaders/lanczos/lanczos6.cg
./shaders/hqx/hq4x.cg
./shaders/hqx/hq2x.cg
./shaders/xsai/super-2xsai.cg
./shaders/handheld/lcd3x.cg
./shaders/handheld/dot.cg
./shaders/handheld/lcd-shader/lcd-pass-0.cg
./shaders/handheld/lcd-shader/lcd-pass-3.cg
./shaders/handheld/lcd-shader/lcd-pass-2.cg
./shaders/handheld/lcd-shader/lcd-pass-1.cg
./shaders/handheld/lcd-shader/backup-2/lcd-pass-4.cg
./shaders/handheld/lcd-shader/backup-2/lcd-pass-0.cg
./shaders/handheld/lcd-shader/backup-2/lcd-pass-3.cg
./shaders/handheld/lcd-shader/backup-2/lcd-pass-2.cg
./shaders/handheld/lcd-shader/backup-2/lcd-pass-1.cg
./shaders/handheld/lcd-shader/backup-2/lcd-pass-5.cg
./shaders/handheld/lcd-shader/backup-3/lcd-pass-0.cg
./shaders/handheld/lcd-shader/backup-3/lcd-pass-3.cg
./shaders/handheld/lcd-shader/backup-3/lcd-pass-2.cg
./shaders/handheld/lcd-shader/backup-3/lcd-pass-1.cg
./shaders/handheld/lcd-shader/backup/lcd-pass-4.cg
./shaders/handheld/lcd-shader/backup/lcd-pass-0.cg
./shaders/handheld/lcd-shader/backup/lcd-pass-3.cg
./shaders/handheld/lcd-shader/backup/lcd-pass-2.cg
./shaders/handheld/lcd-shader/backup/lcd-pass-1.cg
./shaders/handheld/lcd-shader/backup/lcd-pass-5.cg
./shaders/handheld/dmg-shader/shader-2x/gb-pass-0.cg
./shaders/handheld/dmg-shader/shader-2x/gb-pass-1.cg
./shaders/handheld/dmg-shader/shader-2x/gb-pass-2.cg
./shaders/handheld/dmg-shader/shader-2x/gb-pass-4.cg
./shaders/handheld/dmg-shader/shader-2x/gb-pass-5.cg
./shaders/handheld/dmg-shader/shader-2x/gb-pass-3.cg
./shaders/handheld/dmg-shader/shader-4x/gb-pass-0.cg
./shaders/handheld/dmg-shader/shader-4x/gb-pass-1.cg
./shaders/handheld/dmg-shader/shader-4x/gb-pass-2.cg
./shaders/handheld/dmg-shader/shader-4x/gb-pass-4.cg
./shaders/handheld/dmg-shader/shader-4x/gb-pass-5.cg
./shaders/handheld/dmg-shader/shader-4x/gb-pass-3.cg
./shaders/handheld/dmg-shader/shader-3x/gb-pass-0.cg
./shaders/handheld/dmg-shader/shader-3x/gb-pass-1.cg
./shaders/handheld/dmg-shader/shader-3x/gb-pass-2.cg
./shaders/handheld/dmg-shader/shader-3x/gb-pass-4.cg
./shaders/handheld/dmg-shader/shader-3x/gb-pass-5.cg
./shaders/handheld/dmg-shader/shader-3x/gb-pass-3.cg
./shaders/handheld/gameboy/shader-files/gb-pass-0.cg
./shaders/handheld/gameboy/shader-files/gb-pass-1.cg
./shaders/handheld/gameboy/shader-files/gb-pass-2.cg
./shaders/handheld/gameboy/shader-files/gb-pass-4.cg
./shaders/handheld/gameboy/shader-files/gb-pass-3.cg
./shaders/handheld/lcd_cgwg/motionblur-simple.cg
./shaders/handheld/lcd_cgwg/lcd-grid.cg
./shaders/eagle/super-eagle.cg
./shaders/xbr-hybrid/2xbr-hybrid-v2.cg
./shaders/xbr-hybrid/2xbr-hybrid-sharp.cg
./shaders/xbr-hybrid/2xbr-hybrid-v4-gamma.cg
./shaders/xbr-hybrid/2xbr-hybrid-v4.cg
./shaders/xbr-hybrid/2xbr-hybrid-v2-gamma.cg
./shaders/xbr-hybrid/2xbr-hybrid-v4b.cg
./shaders/xbr-hybrid/2xbr-hybrid-v5-gamma.cg
./shaders/xbr-hybrid/2xbr-hybrid.cg
./shaders/test/optimizations/lanczos16.cg
./shaders/test/lab/misc/cam02-ucs-forward.cg
./shaders/test/lab/misc/sharpness.cg
./shaders/test/lab/misc/cam02-ucs-reverse.cg
./shaders/test/lab/ddt/ddt-crosshd.cg
./shaders/test/lab/ddt/ddt-cxscale.cg
./shaders/test/lab/ddt/crt-ddt.cg
./shaders/test/lab/xbr/2xbr-lv1-pass1.cg
./shaders/test/lab/xbr/2xbr-lv1-c-pass0.cg
./shaders/test/lab/xbr/xbr-lv2-scale-agnostic.cg
./shaders/misc/cmyk-halftone-dot.cg
./shaders/misc/mcgreen.cg
./shaders/misc/nohalo.cg
./shaders/crt/crt.cg
./shaders/crt/4xbr-hybrid-crt.cg
./shaders/crt/crt-caligari.cg
./shaders/crt/tv-highcontrast-hd.cg
./shaders/crt/4xbr-hybrid-crt-b.cg
./shaders/crt/snes-hires-blend.cg
./shaders/crt/crt-reverse-aa.cg
./shaders/crt/phosphor-normalgamma.cg
./shaders/crt/crt-geom-flat.cg
./shaders/crt/crt-highgamma.cg
./shaders/crt/crt-cgwg.cg
./shaders/crt/crt-normalgamma.cg
./shaders/crt/crt-curved.cg
./shaders/crt/tv-highcontrast-hd-1152x672.cg
./shaders/crt/phosphor.cg
./shaders/crt/phosphorlut/bsnes-gamma-ramp.cg
./shaders/crt/phosphorlut/gaussian-vert.cg
./shaders/crt/phosphorlut/phosphorlut-pass0.cg
./shaders/crt/phosphorlut/phosphorlut-pass1.cg
./shaders/crt/phosphorlut/gaussian-horiz.cg
./shaders/crt/crt-interlaced-halation/crt-interlaced-halation-pass1.cg
./shaders/crt/crt-interlaced-halation/crt-interlaced-halation-pass2.cg
./shaders/crt/crt-interlaced-halation/crt-interlaced-halation-pass0.cg
./shaders/warp/dilation.cg
./shaders/warp/erosion.cg
./shaders/borders/aspect/border-aspect.cg
./shaders/borders/left-portrait/scale-2x.cg
./shaders/borders/left-portrait/non-fbo.cg
./shaders/borders/left-portrait/scale-1x.cg
./shaders/borders/left-portrait/scale-4x.cg
./shaders/borders/centered/fbo-scale-1x.cg
./shaders/borders/centered/water-scale-1x.cg
./shaders/borders/centered/fbo-scale-4x.cg
./shaders/borders/centered/non-fbo.cg
./shaders/borders/centered/water-scale-4x.cg
./shaders/borders/centered/water-non-fbo.cg
./shaders/borders/centered/water-scale-2x.cg
./shaders/borders/centered/fbo-scale-2x.cg
./shaders/xsal/2xsal.cg
./shaders/sabr/sabr-v1.1.cg
./shaders/sabr/sabr-v3.0.cg
./shaders/waterpaint/waterpaint-hc.cg
./shaders/waterpaint/water.cg
./shaders/waterpaint/waterpaint.cg
./shaders/ddt/ddt-extended.cg
./shaders/ddt/ddt.cg
./shaders/ddt/ddt-waterpaint.cg
./shaders/quad/quad_interp.cg
./shaders/quad/quad-interp-hd.cg
./shaders/quad/quad-interp-hd-768.cg
./shaders/ntsc/ntsc-gauss-pass.cg
./shaders/ntsc/ntsc-pass2-svideo-2phase.cg
./shaders/ntsc/ntsc-pass1-2phase.cg
./shaders/ntsc/ntsc-pass3.cg
./shaders/ntsc/ntsc-pass3-gamma.cg
./shaders/ntsc/ntsc-pass2-3phase.cg
./shaders/ntsc/ntsc-pass2-svideo-3phase.cg
./shaders/ntsc/ntsc-stock.cg
./shaders/ntsc/ntsc-pass2-2phase.cg
./shaders/ntsc/ntsc-pass1-3phase.cg
./shaders/motionblur/motionblur-simple.cg
./shaders/motionblur/motionblur-blue.cg
./shaders/motionblur/braid-rewind.cg
./shaders/xsoft/4xsoft-hd-792p.cg
./shaders/xsoft/4xsoft-hd.cg
./shaders/xsoft/4xsoft-hd-var1-592p.cg
./shaders/xsoft/4xsoft-var1.cg
./shaders/xsoft/4xsoft-hd-752p.cg
./shaders/xsoft/4xsoft-hd-var1.cg
./shaders/xsoft/4xsoft-hd-832p.cg
./shaders/xsoft/4xsoft-hd-768p.cg
./shaders/xsoft/4xsoft-hd-672p.cg
./shaders/xsoft/4xsoft.cg
./shaders/xsoft/4xsoft-hd-592p.cg
./shaders/xsoft/4xsoft-hd-var1-752p.cg
./shaders/neon/neon-variation-1.cg
./shaders/scalex/scale2xplus.cg
./shaders/auto-box/sharpen-lighter-box.cg
./shaders/auto-box/box-max.cg
./shaders/xbr/5xbr-v3.8c.cg
./shaders/xbr/xbr-dilation.cg
./shaders/xbr/5xbr-v3.7d.cg
./shaders/xbr/5xbr-v3.7b.cg
./shaders/xbr/5xbr-v3.8d.cg
./shaders/xbr/xbr-v3.8c-gamma.cg
./shaders/xbr/4xbr-v4.0.cg
./shaders/xbr/5xbr.cg
./shaders/xbr/5xbr-v3.7c-lq.cg
./shaders/xbr/4xbr.cg
./shaders/xbr/2xbr.cg
./shaders/xbr/5xbr-v1.1.cg
./shaders/xbr/2xbr-v3.7c.cg
./shaders/xbr/2xbr-v2.2.cg
./shaders/xbr/2xbr-v3.8c.cg
./shaders/xbr/3xbr-v3.8d.cg
./shaders/xbr/3xbr.cg
./shaders/xbr/xbr-v3.8b-gamma.cg
./shaders/xbr/2xbr-v3.8a.cg
./shaders/xbr/5xbr-v3.8b.cg
./shaders/xbr/2xbr-v3.8b.cg
./shaders/xbr/5xbr-v3.7c-plus-crt.cg
./shaders/xbr/4xbr-v3.8a.cg
./shaders/xbr/2xbr-v3.8d.cg
./shaders/xbr/4xbr-v3.9c.cg
./shaders/xbr/5xbr-v4.0-noblend.cg
./shaders/xbr/3xbr-v3.8b.cg
./shaders/xbr/xbr-v3.8a-gamma.cg
./shaders/xbr/2xbr-v3.7c-dark.cg
./shaders/xbr/3xbr-v3.8a.cg
./shaders/xbr/4xbr-v1.1.cg
./shaders/xbr/5xbr-v3.7a.cg
./shaders/xbr/3xbr-v3.8c.cg
./shaders/xbr/5xbr-v3.7c.cg
./shaders/xbr/4xbr-v3.8b.cg
./shaders/xbr/2xbr-v3.7c-light.cg
./shaders/xbr/4xbr-v3.8c.cg
./shaders/xbr/5xbr-v3.8a.cg
./shaders/xbr/4xbr-v3.8d.cg
./shaders/xbr/xbr-lv2-multipass/xbr-lv2-b-pass0.cg
./shaders/xbr/xbr-lv2-multipass/xbr-lv2-c-pass0.cg
./shaders/xbr/xbr-lv2-multipass/xbr-lv2-pass1.cg
./shaders/xbr/xbr-lv2-multipass/xbr-lv2-noblend-pass1.cg
./shaders/xbr/xbr-lv2-multipass/xbr-lv2-d-pass0.cg
./shaders/xbr/xbr-lv2-multipass/xbr-lv2-a-pass0.cg
./shaders/xbr/hlsl/5xbr-v3.7a.cg
./shaders/xbr/legacy/2xbr-v2.1.cg
./shaders/xbr/legacy/2xbr-v2.cg
./shaders/xbr/legacy/3xbr-v2.1.cg
./shaders/xbr/legacy/5xbr-v3.2.cg
./shaders/xbr/legacy/5xbr-v2.cg
./shaders/xbr/legacy/3xbr-v2.cg
./shaders/xbr/legacy/5xbr-v3.5.cg
./shaders/xbr/legacy/5xbr-v2.1.cg
./shaders/xbr/legacy/5xbr-v3.6b.cg
./shaders/xbr/legacy/5xbr-v3.5a.cg
./shaders/xbr/legacy/5xbr-v3.5-plus-crt.cg
./shaders/xbr/legacy/2xbr-v3.5a.cg
./shaders/xbr/legacy/5xbr-v3.3.cg
./shaders/xbr/legacy/5xbr-v3.6a.cg
./shaders/xbr/legacy/4xbr-v3.5-plus-crt.cg
./shaders/xbr/legacy/5xbr-v3.6c.cg
./shaders/bicubic/bicubic-sharper.cg
./shaders/bicubic/bicubic-fast.cg
./shaders/bicubic/bicubic-sharp.cg
./shaders/bicubic/bicubic-normal.cg
./shaders/anti-aliasing/fx-aa.cg
./shaders/anti-aliasing/reverse-aa.cg
./shaders/anti-aliasing/advanced-aa.cg
./shaders/anti-aliasing/fxaa-edge-detect.cg
./shaders/dithering/mdapt-2p/mdapt-pass1.cg
./shaders/dithering/mdapt-2p/mdapt-pass2.cg
./shaders/dithering/mdapt-4p/mdapt-pass1.cg
./shaders/dithering/mdapt-4p/mdapt-pass3.cg
./shaders/dithering/mdapt-4p/mdapt-pass2.cg
./shaders/dithering/mdapt-4p/mdapt-pass4.cg
./shaders/mudlord/sharpen.cg
./shaders/mudlord/sharpen-medium.cg
./shaders/mudlord/sharpen-light2.cg
./shaders/mudlord/sharpen-light.cg
./shaders/mudlord/waterpaint-mudlord.cg
./shaders/mudlord/oldtv-var2.cg
./shaders/mudlord/oldtv-config.cg
./shaders/mudlord/oldtv-var4.cg
./shaders/mudlord/blur.cg
./shaders/mudlord/oldtv-var3.cg
./shaders/mudlord/oldtv-var1.cg
./shaders/mudlord/blur-lighter.cg
./shaders/mudlord/toon.cg
./shaders/mudlord/emboss.cg
./shaders/mudlord/mud-mudlord.cg
./shaders/mudlord/sharpen-lighter.cg
./shaders/mudlord/noise-mudlord.cg
./shaders/mudlord/oldtv.cg
./shaders/mudlord/bloom.cg
./shaders/mudlord/blur-light.cg

So basicly… “failed!” is the key word on my attempts here. Any help would be greatly appreciated.

1 Like

You have version 3.1 installed? Try converting a single shader, it should have more error logging. You’re using the script in the RetroArch repo, right?

1 Like

If you mean python 3, then yes…


xxx@xxx:~$ python3 --version
Python 3.2.3

And I got the script from one of your links somewhere, it had a preview form for testing glsl shaders on the web… the link took me to the repo, so i’m relatively sure I have the right version of the script, unless my spidey sense is way off. (Probably)…

Here’s a test of converting … scanline.cg


xxx@xxx:~$ ./cg2glsl.py ./shaders/scanline.cg ./xmlshaders/scanline.glsl
(67) : fatal error C9999: InitHAL failed

Vertex compilation failed ...

Another situation where I have absolutely no idea what’s going on, lol… Thanks again.

1 Like

I mean Cg version.

1 Like

Yup


cgc: version 3.0.0016, build date Feb 13 2011 17:29:46.

1 Like

Well, looks like you have to update. 3.0 probably doesn’t support GLES cross compile.

1 Like

How do I update? Apt tells me it’s newest version.


xxx@xxx:~$ sudo apt-get install nvidia-cg-toolkit
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nvidia-cg-toolkit is already the newest version.
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

1 Like

You can try either downloading it directly from nvidia (http://developer.download.nvidia.com/cg/Cg_3.1/Cg-3.1_April2012_x86_64.deb) or install the raring package, which is 3.1.

1 Like

Alrighty, you guys are officially awesome!!! It converted scanline.cg to scanline.glsl and I copied it onto my RPi to test it and it worked perfectly.

Thanks alot guys.

1 Like

Glad to hear you got it worked out :slight_smile:

1 Like

I’m having a similar problem on Fedora:


$ retroarch-cg2glsl pixellate.cg pixellate.glsl
cgc: bad argument: ""
(0) : fatal error C9999: bad arguments


Vertex preprocessing failed ...
<stdin>(1) : error C0000: syntax error, unexpected ':', expecting "::" at token ":"

Vertex compilation failed ...


$ cgc -v
cgc: version 3.1.0013, build date Apr 24 2012 13:37:46.

Happens with every cg I’ve tried.

1 Like

@xenphor Have you tried using the Makefile.shaders script from the RetroArch source? If not, checkout the source from git, then from the main directory:

make -f Makefile.shaders checkout-shaders

then

make -f Makefile.shaders convert-xml

It will copy all of the converted shaders into media/shaders_glsl.

1 Like

Okay that worked well; although the one shader I wanted to use (pixellate) was not included it seems.

I mainly want to use a shader so I can have non-integer scaling without it looking bad. I guess it would be similar to mame with the prescale option set. I thought this is what the pixellate shader did so are there any others like that?

1 Like

Oh, that’s a shame. It should be very easy to convert by hand, though, since it just uses a passthrough vertex and the fragment part is pretty simple.

You can use this old XML/GLSL version for reference: https://gitorious.org/bsnes/xml-shaders … shader#L67

1 Like

It would be great if someone could hand convert it so that pixellate can be included in the android and ios ports.

1 Like

unfortunately I really have no idea about programming so I’ll just use what I can.

1 Like

See if this works for you:

// GLSL shader autogenerated by cg2glsl.py.
#if defined(VERTEX)

#if __VERSION__ >= 130
#define COMPAT_VARYING out
#define COMPAT_ATTRIBUTE in
#define COMPAT_TEXTURE texture
#else
#define COMPAT_VARYING varying 
#define COMPAT_ATTRIBUTE attribute 
#define COMPAT_TEXTURE texture2D
#endif

#ifdef GL_ES
#define COMPAT_PRECISION mediump
#else
#define COMPAT_PRECISION
#endif
COMPAT_VARYING     float _frame_rotation;
COMPAT_VARYING     vec4 _color1;
struct output_dummy {
    vec4 _color1;
};
struct input_dummy {
    vec2 _video_size;
    vec2 _texture_size;
    vec2 _output_dummy_size;
    float _frame_count;
    float _frame_direction;
    float _frame_rotation;
};
vec4 _oPosition1;
vec4 _r0005;
COMPAT_ATTRIBUTE vec4 VertexCoord;
COMPAT_ATTRIBUTE vec4 COLOR;
COMPAT_ATTRIBUTE vec4 TexCoord;
COMPAT_VARYING vec4 COL0;
COMPAT_VARYING vec4 TEX0;
 
uniform mat4 MVPMatrix;
uniform int FrameDirection;
uniform int FrameCount;
uniform COMPAT_PRECISION vec2 OutputSize;
uniform COMPAT_PRECISION vec2 TextureSize;
uniform COMPAT_PRECISION vec2 InputSize;
void main()
{
    vec4 _oColor;
    vec2 _otexCoord;
    _r0005 = VertexCoord.x*MVPMatrix[0];
    _r0005 = _r0005 + VertexCoord.y*MVPMatrix[1];
    _r0005 = _r0005 + VertexCoord.z*MVPMatrix[2];
    _r0005 = _r0005 + VertexCoord.w*MVPMatrix[3];
    _oPosition1 = _r0005;
    _oColor = COLOR;
    _otexCoord = TexCoord.xy;
    gl_Position = _r0005;
    COL0 = COLOR;
    TEX0.xy = TexCoord.xy;
} 
#elif defined(FRAGMENT)

#if __VERSION__ >= 130
#define COMPAT_VARYING in
#define COMPAT_TEXTURE texture
out vec4 FragColor;
#else
#define COMPAT_VARYING varying
#define FragColor gl_FragColor
#define COMPAT_TEXTURE texture2D
#endif

#ifdef GL_ES
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
#define COMPAT_PRECISION mediump
#else
#define COMPAT_PRECISION
#endif
COMPAT_VARYING     float _frame_rotation;
COMPAT_VARYING     vec4 _color;
struct output_dummy {
    vec4 _color;
};
struct input_dummy {
    vec2 _video_size;
    vec2 _texture_size;
    vec2 _output_dummy_size;
    float _frame_count;
    float _frame_direction;
    float _frame_rotation;
};
uniform sampler2D Texture;
COMPAT_VARYING vec4 TEX0;
COMPAT_VARYING vec2 texCoord;
 
uniform int FrameDirection;
uniform int FrameCount;
uniform COMPAT_PRECISION vec2 OutputSize;
uniform COMPAT_PRECISION vec2 TextureSize;
uniform COMPAT_PRECISION vec2 InputSize;
void main()
{
vec2 texelSize = 1.0 / TextureSize;

                vec2 range = vec2(abs(dFdx(TEX0.x)), abs(dFdy(TEX0.y)));
                range = range / 2.0 * 0.999;

                float left   = TEX0.x - range.x;
                float top    = TEX0.y + range.y;
                float right  = TEX0.x + range.x;
                float bottom = TEX0.y - range.y;

                vec4 topLeftColor     = texture(Texture, vec2(left, top));
                vec4 bottomRightColor = texture(Texture, vec2(right, bottom));
                vec4 bottomLeftColor  = texture(Texture, vec2(left, bottom));
                vec4 topRightColor    = texture(Texture, vec2(right, top));

                vec2 border = clamp(
                        round(TEX0.xy / texelSize) * texelSize,
                        vec2(left, bottom),
                        vec2(right, top)
                    );

                float totalArea = 4.0 * range.x * range.y;

                vec4 averageColor;
                averageColor  = ((border.x - left)  * (top - border.y)    / totalArea) * topLeftColor;
                averageColor += ((right - border.x) * (border.y - bottom) / totalArea) * bottomRightColor;
                averageColor += ((border.x - left)  * (border.y - bottom) / totalArea) * bottomLeftColor;
                averageColor += ((right - border.x) * (top - border.y)    / totalArea) * topRightColor;
    FragColor = averageColor;
    return;
} 
#endif
1 Like

Hm didn’t work


RetroArch [ERROR] :: Failed to compile fragment shader #0
RetroArch [ERROR] :: Failed to create GL program #0.
RetroArch [WARN] :: [GL]: Failed to set multipass shader. Falling back to stock.
RetroArch [WARN] :: [GL]: Stock GLSL shaders will be used.
RetroArch [ERROR] :: Setting RGUI CGP failed.

1 Like

Ok, it compiles for me on an AMD GPU but I’ll try it on some others and see what’s killing it.

1 Like

there also seems to be an issue with my latest mdapt shader and this conversion script, maybe you can take a look into it? I’ll gladly modify mdapt if there is an issue so that it works again with cg2gsl. here is the post describing the problem:

viewtopic.php?f=6&t=493&start=125#p9485

1 Like