tools: install the native graphics interface catalog at launch #3521
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3521"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T21:36:15Z.
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
632fd625,devpreset; the last commit (efb468ca) 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 baseff9dcef0. 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.Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-30T02:12:41Z.
Review: COMMENTED
Reviewed
efb468caby reading the diff, plus one local run with itsrun.ps1(tests not run). Reads correct.Run from a save, native-only,
-InterfaceCorpuswith all 23,619 vertex, pixel and mesh containers that the documentedextract_shaders.pycommand wrote from a local package, renamed to.cdxil. Compared with an earlier run without a catalog (different build):fixed graphics entry requires matching stage interfacesrun.ps1:88). Skip when the catalog is current, or document a one-time manual install?draw_lock. #3516 covers that, not this PR.