Repository navigation
tools: install the native graphics interface catalog at launch - #3521
Merged
Merged
Conversation
Leyukaka
marked this pull request as ready for review
November 29, 2026 22:31
lukaslw-lab
reviewed
Nov 30, 2026
lukaslw-lab
left a comment
Contributor
There was a problem hiding this comment.
Reviewed efb468ca by reading the diff, plus one local run with its run.ps1 (tests not run). Reads correct.
Run from a save, native-only, -InterfaceCorpus with all 23,619 vertex, pixel and mesh containers that the documented extract_shaders.py command wrote from a local package, renamed to .cdxil. Compared with an earlier run without a catalog (different build):
| keys | without | with |
|---|---|---|
refused fixed graphics entry requires matching stage interfaces |
164 | 0 |
| native graphics ready | 2 | 19 |
| refused for other reasons | 3 | 31 |
- Install cost: 252 s into an empty cache, 140 s into the same cache again, on every launch (
run.ps1:88). Skip when the catalog is current, or document a one-time manual install? - All 23,619 indexed without error, so the docs' "rename the compatible guest containers" could say "all".
- The run stopped at 158 s on the #3451 fault: native graphics now translates at draw time under
draw_lock. #3516 covers that, not this PR.
This was referenced Nov 30, 2026
This was referenced Nov 30, 2026
Leyukaka
force-pushed
the
tools-run-interface-catalog
branch
from
December 1, 2026 17:35
efb468c to
ca2233e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #870.
Why
The native graphics interface catalog is only installed by hand, with
compile_dxil --index-graphics-interfaces. Neither launcher nor the shared preset calls it. Without a catalog in the run's shader cache, every fixed slot-57 /PSI1pixel entry is refused natively withfixed graphics entry requires matching stage interfaces.In one long local run of the application, every native graphics attempt was refused this way. With a catalog built locally from the application's own shader archive, all of those pairs found both stages.
What
run.ps1 -InterfaceCorpus <dir>andrun.sh --interface-corpus <dir>run the existingcompile_dxil --index-graphics-interfaces <dir> <shader cache>from the selected build directory.-Render/--render. Without it, behaviour is unchanged.run_preset.pyforwardsinterface_corpus(--set interface_corpus=DIR). No preset layer sets a value; only theaboutstring ofrun_presets.jsonchanges. This is a per-run local input, not a tuning value, so it is not a shared preset entry.docs/startup-runtime.md:tools/extract_shaders.py <archive> --format dxbc --stage vertex pixel mesh --output-dir <dir>, then rename the reviewed.dxbccontainers to.cdxil, the only extension the indexer reads;Tests
Run on Windows at 632fd62,
devpreset; the last commit (efb468c) changes only the docs.python -B tests/startup_run_preset_check.pypython -B tests/startup_run_ps1_check.py --text-onlyctest -R '^native_graphics_interface_library'python -B tests/startup_run_sh_check.pynative_graphics_interface_librarynow drivesrun.ps1with the real indexer on the existing synthetic pair: rotation with-FreshShaderCache, catalog present before the watcher and the debugger, indexer count in the output, and a stop on a malformed corpus.Mutations, each applied alone and restored:
run.ps1(default value, install guard, block removed, block moved before the rotation, wrong cache, exit-code check removed,-Renderguard, failed-rotation guard, indexer output dropped) and 4 inrun_preset.py/run_presets.json(option removed, empty override forwarded, a value set inbase.run,--printwriting to the run root).run.shmutations instartup_run_sh_check.pywere not executed: the check returns 77 on Windows. They need the Linux CI job.The full
startup_run_ps1_check.py(without--text-only) is flaky on this host under a French locale: 2 pass / 3 fail over 5 runs on the branch, 0 pass / 3 fail on base ff9dcef. The only failure is the "stub exit 7" comparison, where the accented PowerShell error line is decoded differently.Not covered
run.shon Linux: not run here, neither the checks nor their mutations.