diff options
| author | gookie <gookie@online-fix.me> | 2026-11-23 17:46:54 +0100 |
|---|---|---|
| committer | gookie <gookie@online-fix.me> | 2026-11-23 17:59:53 +0100 |
| commit | b93ffa561711e7885c67d5bf9cf0a939f30c42af (patch) | |
| tree | 5e3802a4f2bea2db751d5fc6e19ff3ec13645150 /runtime/test/device_proxy_test.cpp | |
| parent | 7616c48c9a9188bead638bc14f9248dd1e2e0f81 (diff) | |
shaders: translate the pipeline library's compute pipelines, which the executable creates with slot 67 (RT-5)
The retail executable calls Xbox device slot 67 (DeserializeComputePipelineStateX) itself during boot, and every
call fails with "no translated compute shader": the build only translates the FidelityFX DLL's 29 FSPX programs.
The programs come from the pipeline library in shaders.rpf (docs/shader_library.md), which the title reads through
DirectStorage zlib requests: a compute record's state blob, blob, program and layout blob are FSPX kinds 0, 1, 6
and 7, the four pairs of the slot-67 description.
- tools/shader_library.py writes each compute program's record state blob as fspx/<name>.state, so the index gets
fspx_state_sha256 (slot 67 always passes kind 0). In 1.0.2.1 each of the 2,684 compute programs has one.
- make_game.py's shaders stage gets library_shaders(): shader_library.py --stages cs --disasm --carve into
<work>/shaders/library, rdna2spirv.py into <work>/shaders/spirv/library, with the stage's wave64 and fallback
flags, the FSPX step's key-clash check and its own library_build.json for reuse.
- ShaderLibrary::load also reads <dir>/library/index.json; its entries are found by the same two keys.
Tests: test_library_shaders_stage.py (tool calls, reuse, invalidation, empty index, key clash),
test_shader_library.py (.state contents and both keys), shader_library_test (library entries found by code and
state key, a broken or missing index leaves the others).
Diffstat (limited to 'runtime/test/device_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions