Kovid Goyal
51418b820f
Delay load slangc
2026-07-04 14:09:03 +05:30
copilot-swe-agent[bot]
1668960f1c
Refactor kitty_tests: move __init__.py code to base.py, update all imports
2026-07-04 14:09:03 +05:30
Kovid Goyal
f7c7c9f473
Ensure slangc is correct in test env
2026-07-04 14:09:03 +05:30
Kovid Goyal
aa5f803382
Fix struct naming in ported cell shader
2026-07-04 14:09:03 +05:30
Kovid Goyal
20ceeba0b1
Keep generated IR in build dir rather than dest dir
...
We dont do runtime specialisation anymore so no need
for the IR to be distributed.
2026-07-04 14:09:03 +05:30
Kovid Goyal
623cb51530
Fix shadowed function
2026-07-04 14:09:03 +05:30
Kovid Goyal
48cb0dbb6a
Fix default cell variant generation
2026-07-04 14:09:03 +05:30
Kovid Goyal
cf88450f70
Function to dump processed legacy GLSL shaders
...
Makes it easier to compare legacy with new shaders
2026-07-04 14:09:03 +05:30
Kovid Goyal
9ef47caadf
Move a couple of loose uniforms into the block
2026-07-04 14:09:03 +05:30
Kovid Goyal
f5f2d1c64d
Backport using uniform for text_fg_override_threshold from slang to legacy glsl
2026-07-04 14:09:03 +05:30
Kovid Goyal
b22b4431df
Backport fg override algo change from slang to legacy glsl shaders
2026-07-04 14:09:03 +05:30
Kovid Goyal
d5b1cbf7b5
...
2026-07-04 14:09:03 +05:30
Kovid Goyal
03abecd55b
Directly output input attr locations
2026-07-04 14:09:03 +05:30
Kovid Goyal
f536b9fb5a
Fix VAO names for cell shader
2026-07-04 14:09:03 +05:30
Kovid Goyal
8ae4fe805f
Also output input attr name mapping for generated glsl
2026-07-04 14:09:03 +05:30
Kovid Goyal
b2537e322b
Port the border shader
2026-07-04 14:09:02 +05:30
Kovid Goyal
3fd572a5e9
Generate all cell shader variations at build time
...
Trying to generate them at runtime is fragile if using slang IR as the
IR is highly version dependent. If going from source it means it is even
slower and would require some sophisticated caching scheme.
2026-07-04 14:09:02 +05:30
Kovid Goyal
6a902cb4b3
Function to specialize cell shader at runtime based on options
2026-07-04 14:09:02 +05:30
Kovid Goyal
e0e16f427c
Dump slang file metadata when building
2026-07-04 14:09:02 +05:30
Kovid Goyal
c7c5c792a3
Port the cell fragment shader
2026-07-04 14:09:02 +05:30
Kovid Goyal
e6202d87c3
Remove glsl file is fixing it fails
2026-07-04 14:09:02 +05:30
Kovid Goyal
0e8938429f
Lower glsl version to 140 to match existing shaders
2026-07-04 14:09:02 +05:30
Kovid Goyal
59472fa1d9
Preserve layout location attribs for VAOs
2026-07-04 14:09:02 +05:30
Kovid Goyal
0c2c049cf8
Finish porting cell vertex shader
2026-07-04 14:09:02 +05:30
Kovid Goyal
35d5fd260d
More work on cell shader porting
2026-07-04 14:09:02 +05:30
Kovid Goyal
4c98cae59e
More cell shader porting work
2026-07-04 14:09:02 +05:30
Kovid Goyal
20460e3adf
More porting work on cell shader
2026-07-04 14:09:02 +05:30
Kovid Goyal
2e7e8db5c7
Port the HSL UV shader
2026-07-04 14:09:02 +05:30
Kovid Goyal
e029e4fb13
More work on porting cell shader
2026-07-04 14:09:02 +05:30
Kovid Goyal
37307d85e6
Start work on porting cell shader
2026-07-04 14:09:01 +05:30
Kovid Goyal
3243086840
Rebuild shaders if slangc version does not match
2026-07-04 14:09:01 +05:30
Kovid Goyal
9c12a70704
Bump slang version, allows removing one glsl workaround
2026-07-04 14:09:01 +05:30
Kovid Goyal
178c3cb8b2
Rebuild when build script is newer than cached IR
2026-07-04 14:09:01 +05:30
Kovid Goyal
17a7e6d6d9
Handle fixup of flat location specifiers
2026-07-04 14:09:01 +05:30
Kovid Goyal
cd93c944e2
Make mypy happy
2026-07-04 14:09:01 +05:30
Kovid Goyal
b052d62a97
Handle uniform structs
2026-07-04 14:09:01 +05:30
Kovid Goyal
6e185fb953
Nicer validation integration
2026-07-04 14:09:01 +05:30
Kovid Goyal
b656fc4ec5
Handle array uniforms when fixing GLSL
2026-07-04 14:09:01 +05:30
Kovid Goyal
ddc012394e
Do not generate empty default specialization files
2026-07-04 14:09:01 +05:30
Kovid Goyal
5b6279c885
Reduce the number of specialisation vars for the cell shader
...
Use macros for the from C constants
2026-07-04 14:09:01 +05:30
Kovid Goyal
9fa3b096ca
Infrastructure for porting cell shader
2026-07-04 14:09:01 +05:30
Kovid Goyal
437bf7bba7
Install gslangValidator in CI
2026-07-04 14:09:01 +05:30
Kovid Goyal
a4fd91e00f
...
2026-07-04 14:09:01 +05:30
Kovid Goyal
dd311a80a0
Only validate newly built files
2026-07-04 14:09:01 +05:30
Kovid Goyal
c94e47febb
Automatically validate GLSL shaders after build
2026-07-04 14:09:00 +05:30
Kovid Goyal
b6c9a05b4f
Port rounded_rect shader
2026-07-04 14:09:00 +05:30
Kovid Goyal
d294c023c7
Use gather for texture sampling
2026-07-04 14:09:00 +05:30
Kovid Goyal
a37bf14a0c
Port the screenshot shader
2026-07-04 14:09:00 +05:30
Kovid Goyal
2f12d47e0e
Port the blit shader
2026-07-04 14:09:00 +05:30
Kovid Goyal
5902de98d9
Rename blit common shader module
2026-07-04 14:09:00 +05:30