compile_dxil: index the graphics interface catalog on several threads (--jobs) #3539
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3539"
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 lukaslw-lab on 2026-11-30T02:35:09Z.
Change
compile_dxil --index-graphics-interfaces DIR CACHE [--jobs N](1–64, default 1) indexes the reviewed containers on N threads. Fixes #3534.src/direct_compute_cache.cpp,index_graphics_interfaces).--jobs, the behaviour and output are unchanged. Other callers keepjobs = 1.Related: #3521 runs this install at launch. Our #3472 adds
--jobsto the compute pack in the same files, in other functions.Verification
Commit
a8a7b031on Windows 10 22H2 (build 19045), Visual Studio 2026 18.12 (MSVC 19.52), Windows SDK 10.0.26100, CMake 4.3.1, Python 3.13.7.native_graphics_interface_librarynow installs its synthetic library once on one thread and once with--jobs 3, and compares the twointerfaces/librarytrees byte for byte. That library includes the ambiguous embedded ID. The test also checks that--jobs 0is refused and that a broken container still fails with--jobs 3.Mutations, each applied alone, all caught by that test: errors from workers ignored; workers skipping every other file.
Timing on a local corpus of 23,619 vertex, pixel and mesh containers (from
tools/extract_shaders.py), 8 logical CPUs, same code before the rebase ontod88f784b:--jobsThe 1-job and 8-job catalogs are identical (same
catalog, same.indexname, 23,014 files each).Evidence and follow-up
.stagepath concurrently, whichpublish()already handles.maindescribes the install yet. #3521 adds one, and--jobscan go there once both have landed.Checklist
AI-assisted: prepared with Claude Code; the commands and results above were run on the author's PC.
🤖 Generated with Claude Code