Why can't I get grade.slang to load?

I broke something, somehow.

[INFO] RetroArch 1.8.1 (Git bfdc8e6a62)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i5 CPU         650  @ 3.20GHz
[INFO] Capabilities:  MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE4.2 AES
[INFO] Built: Nov  2 2019
[INFO] Version: 1.8.1
[INFO] Git: bfdc8e6a62
[INFO] =================================================
[INFO] Initializing Dr.MingW Exception handler
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] Redirecting save file to "C:\Users\Patrick\Downloads\RetroArch\saves\.srm".
[INFO] Redirecting savestate to "C:\Users\Patrick\Downloads\RetroArch\states\.state".
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 30000.00 Hz.
[INFO] [Video]: Video @ fullscreen
[INFO] [GLCore]: Found GL context: wgl
[INFO] [GLCore]: Detecting screen resolution 1920x1080.
[INFO] Setting fullscreen to 1920x1080 @ 60Hz on device \\.\DISPLAY1.
[INFO] [WGL] extensions: WGL_ARB_buffer_region WGL_ARB_create_context WGL_ARB_create_context_no_error WGL_ARB_create_context_profile WGL_ARB_create_context_robustness WGL_ARB_context_flush_control WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_mult
[INFO] [WGL]: Adaptive VSync supported.
[INFO] [WGL]: wglSwapInterval(1)
[INFO] [GLCore]: Vendor: NVIDIA Corporation, Renderer: GeForce GTX 1050/PCIe/SSE2.
[INFO] [GLCore]: Version: 4.6.0 NVIDIA 432.00.
[INFO] [GLCore]: Using resolution 1920x1080
[INFO] [DINPUT]: Enumerating joypads ...
[INFO] [DINPUT]: Device #0 PID: {028E} VID:{045E}
[WARN] [DINPUT]: Strong rumble unavailable.
[WARN] [DINPUT]: Weak rumble unavailable.
[INFO] [Autoconf]: 33 profiles found.
[INFO] [Autoconf]: selected configuration: C:\Users\Patrick\Downloads\RetroArch\autoconfig\dinput\XBOX_360.cfg
[INFO] [DINPUT]: Done enumerating joypads ...
[INFO] [Joypad]: Found joypad driver: "dinput".
[INFO] [GLCore]: Loading stock shader.
[INFO] [slang]: Building pass #0 (N/A)
[INFO] [slang]: Reflection
[INFO] [slang]:   Textures:
[INFO] [slang]:      Source (#0)
[INFO] [slang]:
[INFO] [slang]:   Uniforms (Vertex: yes, Fragment: no):
[INFO] [slang]:   Push Constants (Vertex: no, Fragment: no):
[INFO] [slang]:      MVP (Offset: 0)
[INFO] [slang]:
[INFO] [slang]:   Parameters:
[INFO] [GLCore]: Not using frame history.
[INFO] [GLCore]: Not using framebuffer feedback.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Video]: Found display server: win32
[INFO] Found shader "C:\Users\Patrick\Downloads\RetroArch\shaders\retroarch.slangp"
[INFO] Found shader "C:\Users\Patrick\Downloads\RetroArch\shaders\test.slangp"
[INFO] [XAudio2]: Requesting 64 ms latency, using 64 ms latency.
[INFO] [Menu]: Found menu display driver: "glcore".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Menu]: Found menu display driver: "glcore".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [LED]: LED driver = 'null' 0000000000D00300
[INFO] [MIDI]: Initializing ...
[INFO] [MIDI]: Input disabled.
[INFO] [MIDI]: Output disabled.
[INFO] [MIDI]: Initialized "winmm" driver.
[INFO] SRAM will not be saved.
[INFO] Loading history file: [C:\Users\Patrick\Downloads\RetroArch\content_history.lpl].
[INFO] Loading history file: [C:\Users\Patrick\Downloads\RetroArch\content_music_history.lpl].
[INFO] Loading history file: [C:\Users\Patrick\Downloads\RetroArch\content_video_history.lpl].
[INFO] Loading history file: [C:\Users\Patrick\Downloads\RetroArch\content_image_history.lpl].
[INFO] Loading favorites file: [C:\Users\Patrick\Downloads\RetroArch\content_favorites.lpl].
[INFO] [GLCore]: VSync => on
[INFO] [WGL]: wglSwapInterval(1)
[INFO] [GLCore]: VSync => on
[INFO] [WGL]: wglSwapInterval(1)
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[WARN] [GL debug (Medium, API, Performance)]: Program/shader state performance warning: Vertex shader in program 6 is being recompiled based on GL state.
[INFO] Using content: C:\Users\Patrick\Downloads\RetroArch\roms\snes\240pSuite.sfc.
[INFO] arg #0: retroarch
[INFO] arg #1: C:\Users\Patrick\Downloads\RetroArch\roms\snes\240pSuite.sfc
[INFO] arg #2: -s
[INFO] arg #3: C:\Users\Patrick\Downloads\RetroArch\saves
[INFO] arg #4: -S
[INFO] arg #5: C:\Users\Patrick\Downloads\RetroArch\states
[INFO] arg #6: -c
[INFO] arg #7: C:\Users\Patrick\Downloads\RetroArch\retroarch.cfg
[INFO] arg #8: -L
[INFO] arg #9: C:\Users\Patrick\Downloads\RetroArch\cores\snes9x2010_libretro.dll
[INFO] arg #10: -v
[INFO] Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[INFO] Unloading game..
[INFO] Unloading core..
[INFO] Unloading core symbols..
[INFO] [Video]: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.
[INFO] Set config file to : C:\Users\Patrick\Downloads\RetroArch\retroarch.cfg
[INFO] RetroArch 1.8.1 (Git bfdc8e6a62)
[INFO] Redirecting save file to "C:\Users\Patrick\Downloads\RetroArch\saves\240pSuite.srm".
[INFO] Redirecting savestate to "C:\Users\Patrick\Downloads\RetroArch\states\240pSuite.state".
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i5 CPU         650  @ 3.20GHz
[INFO] Capabilities:  MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE4.2 AES
[INFO] Built: Nov  2 2019
[INFO] Version: 1.8.1
[INFO] Git: bfdc8e6a62
[INFO] =================================================
[INFO] Initializing Dr.MingW Exception handler
[INFO] Loading dynamic libretro core from: "C:\Users\Patrick\Downloads\RetroArch\cores\snes9x2010_libretro.dll"
[INFO] [Overrides] core-specific overrides found at C:\Users\Patrick\Downloads\RetroArch\config\Snes9x 2010\Snes9x 2010.cfg.
[INFO] [Overrides] no content-dir-specific overrides found at C:\Users\Patrick\Downloads\RetroArch\config\Snes9x 2010\snes.cfg.
[INFO] [Overrides] no game-specific overrides found at C:\Users\Patrick\Downloads\RetroArch\config\Snes9x 2010\240pSuite.cfg.
[INFO] Config: appending config "C:\Users\Patrick\Downloads\RetroArch\config\Snes9x 2010\Snes9x 2010.cfg"
[INFO] [Environ]: GET_LANGUAGE: "0".
[INFO] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_INTL.
[INFO] [Environ]: SET_CONTROLLER_INFO.
[INFO] [Remaps]: remap directory: C:\Users\Patrick\Downloads\RetroArch\config\remaps
[INFO] Redirecting save file to "C:\Users\Patrick\Downloads\RetroArch\saves\240pSuite.srm".
[INFO] Redirecting savestate to "C:\Users\Patrick\Downloads\RetroArch\states\240pSuite.state".
[INFO] [Environ]: GET_OVERSCAN: 0
[INFO] [Environ]: GET_LOG_INTERFACE.
[INFO] [Environ]: SET_SUPPORT_ACHIEVEMENTS: yes.
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[libretro INFO] Frontend supports RGB565 - will use that instead of XRGB1555.
[INFO] [Environ]: PERFORMANCE_LEVEL: 7.
[INFO] Loading content file: C:\Users\Patrick\Downloads\RetroArch\roms\snes\240pSuite.sfc.
[INFO] Did not find a valid content patch.
[INFO] [Environ]: SET_INPUT_DESCRIPTORS:
[libretro INFO] No ROM file header found.
[libretro INFO] "240P TEST SUITE SNES" [checksum ok] LoROM, 4Mbits, ROM, NTSC, SRAM:0Kbits, ID:SNES, CRC32:FE53A088
[INFO] [Environ]: SET_MEMORY_MAPS.
[INFO]    ndx flags  ptr              offset   start    select   disconn  len      addrspace
[INFO] [RCHEEVOS]: ext_hash 0b88a9a1 ('sfc')
[INFO] Skipping SRAM load..
[INFO] [RCHEEVOS]: Load task finished
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Cheats]: Load game-specific cheatfile: C:\Users\Patrick\Downloads\RetroArch\cheats\Snes9x 2010\240pSuite.cht
[INFO] [Audio]: Set audio input rate to: 31987.82 Hz.
[INFO] [Video]: Video @ fullscreen
[INFO] [GLCore]: Found GL context: wgl
[INFO] [GLCore]: Detecting screen resolution 1920x1080.
[INFO] Setting fullscreen to 1920x1080 @ 60Hz on device \\.\DISPLAY1.
[INFO] [WGL] extensions: WGL_ARB_buffer_region WGL_ARB_create_context WGL_ARB_create_context_no_error WGL_ARB_create_context_profile WGL_ARB_create_context_robustness WGL_ARB_context_flush_control WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_mult
[INFO] [WGL]: Adaptive VSync supported.
[INFO] [WGL]: wglSwapInterval(1)
[INFO] [GLCore]: Vendor: NVIDIA Corporation, Renderer: GeForce GTX 1050/PCIe/SSE2.
[INFO] [GLCore]: Version: 4.6.0 NVIDIA 432.00.
[INFO] [GLCore]: Using resolution 1920x1080
[INFO] [DINPUT]: Enumerating joypads ...
[INFO] [DINPUT]: Device #0 PID: {028E} VID:{045E}
[WARN] [DINPUT]: Strong rumble unavailable.
[WARN] [DINPUT]: Weak rumble unavailable.
[INFO] [Autoconf]: 33 profiles found.
[INFO] [Autoconf]: selected configuration: C:\Users\Patrick\Downloads\RetroArch\autoconfig\dinput\XBOX_360.cfg
[INFO] [DINPUT]: Done enumerating joypads ...
[INFO] [Joypad]: Found joypad driver: "dinput".
[INFO] [Shaders]: preset directory: C:\Users\Patrick\Downloads\RetroArch\shaders\presets
[INFO] [GLCore]: Loading stock shader.
[INFO] [slang]: Building pass #0 (N/A)
[INFO] [slang]: Reflection
[INFO] [slang]:   Textures:
[INFO] [slang]:      Source (#0)
[INFO] [slang]:
[INFO] [slang]:   Uniforms (Vertex: yes, Fragment: no):
[INFO] [slang]:   Push Constants (Vertex: no, Fragment: no):
[INFO] [slang]:      MVP (Offset: 0)
[INFO] [slang]:
[INFO] [slang]:   Parameters:
[INFO] [GLCore]: Not using frame history.
[INFO] [GLCore]: Not using framebuffer feedback.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Video]: Found display server: win32
[INFO] Found shader "C:\Users\Patrick\Downloads\RetroArch\shaders\retroarch.slangp"
[INFO] Found shader "C:\Users\Patrick\Downloads\RetroArch\shaders\test.slangp"
[INFO] [XAudio2]: Requesting 64 ms latency, using 64 ms latency.
[INFO] [Menu]: Found menu display driver: "glcore".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [LED]: LED driver = 'null' 0000000000D00300
[INFO] [MIDI]: Initializing ...
[INFO] [MIDI]: Input disabled.
[INFO] [MIDI]: Output disabled.
[INFO] [MIDI]: Initialized "winmm" driver.
[INFO] Loading history file: [C:\Users\Patrick\Downloads\RetroArch\content_history.lpl].
[INFO] Loading history file: [C:\Users\Patrick\Downloads\RetroArch\content_music_history.lpl].
[INFO] Loading history file: [C:\Users\Patrick\Downloads\RetroArch\content_video_history.lpl].
[INFO] Loading history file: [C:\Users\Patrick\Downloads\RetroArch\content_image_history.lpl].
[INFO] Loading favorites file: [C:\Users\Patrick\Downloads\RetroArch\content_favorites.lpl].
[INFO] [GLCore]: VSync => on
[INFO] [WGL]: wglSwapInterval(1)
[WARN] [GL debug (Medium, API, Performance)]: Program/shader state performance warning: Vertex shader in program 6 is being recompiled based on GL state.
[INFO] [GLCore]: VSync => on
[INFO] [WGL]: wglSwapInterval(1)
[INFO] Saved shader preset to C:\Users\Patrick\Downloads\RetroArch\shaders\retroarch.slangp.
[INFO] [slang]: Compiling shader "C:\Users\Patrick\Downloads\RetroArch\shaders\shaders_slang\misc\grade.slang".
[INFO] [slang]: Building pass #0 (N/A)
[ERROR] [slang]: Non-semantic textures not supported yet.
[ERROR] [slang]: Failed to reflect SPIR-V. Resource usage is inconsistent with expectations.
[ERROR] [GLCore]: Failed to create preset: "C:\Users\Patrick\Downloads\RetroArch\shaders\retroarch.slangp".
[ERROR] [GLCore]: Failed to create filter chain: "C:\Users\Patrick\Downloads\RetroArch\shaders\retroarch.slangp". Falling back to stock.
[INFO] [slang]: Building pass #0 (N/A)
[INFO] [slang]: Reflection
[INFO] [slang]:   Textures:
[INFO] [slang]:      Source (#0)
[INFO] [slang]:
[INFO] [slang]:   Uniforms (Vertex: yes, Fragment: no):
[INFO] [slang]:   Push Constants (Vertex: no, Fragment: no):
[INFO] [slang]:      MVP (Offset: 0)
[INFO] [slang]:
[INFO] [slang]:   Parameters:
[INFO] [GLCore]: Not using frame history.
[INFO] [GLCore]: Not using framebuffer feedback.
[INFO] [Overrides] configuration overrides unloaded, original configuration restored.
[INFO] [config] Saved new config to "C:\Users\Patrick\Downloads\RetroArch\retroarch.cfg".
[INFO] [Cheats]: Save game-specific cheatfile: C:\Users\Patrick\Downloads\RetroArch\cheats\Snes9x 2010\240pSuite.cht
[INFO] Content ran for a total of: 00 hours, 00 minutes, 02 seconds.
[INFO] Saving runtime log file: C:\Users\Patrick\Downloads\RetroArch\playlists\logs\Snes9x 2010\240pSuite.lrtl
[INFO] Unloading game..
[INFO] Unloading core..
[INFO] Unloading core symbols..
[INFO] [Core Options]: Saved core options file to "C:\Users\Patrick\Downloads\RetroArch\retroarch-core-options.cfg"
[INFO] [Video]: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.
[INFO] [Audio]: Average audio buffer saturation: 26.34 %, standard deviation (percentage points): 6.45 %.
[Audio]: Amount of time spent close to underrun: 59.68 %. Close to blocking: 0.00 %.
[INFO] [Video]: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.
[INFO] [Audio]: Average audio buffer saturation: 26.34 %, standard deviation (percentage points): 6.45 %.
[Audio]: Amount of time spent close to underrun: 59.68 %. Close to blocking: 0.00 %.

That usually means either there’s a LUT that isn’t hooked up properly in the preset or there’s a parameter line somewhere that’s broken.

2 Likes

@Dogway

I think this might have to do with the LUT size; how do we determine which LUT size to use? Where are the LUTs even located?

This message confused me as well. When digging through the retroarch shader code I figured out that you get this message “Non-semantic textures not supported yet” when a texture name is not found, this could be something which should be in the “textures” entry in the slangp, or it could be an alias.

I actually did a fix to this message that got merged into the main libretro repo a week or so ago. The fix I did will change this message to tell you it is a texture name or alias it can’t find and actually tell you which texture name it can’t find.

To figure out what it might be look at grade.slang and see what textures it’s using, the older version of grade I have has these lines

layout(set = 0, binding = 3) uniform sampler2D SamplerLUT1; layout(set = 0, binding = 4) uniform sampler2D SamplerLUT2;

So if the new version of grade is the same that means it’s one or both of these names which are missing from the textures line.

3 Likes

That message always appeared to me when I had an error on the path or name of a texture or LUT. I don’t think size should be an issue in this case, it would just trip up on colors but not fail flat out.

2 Likes