mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #497] [MERGED] shaders: index the DXBC identities used by Xbox native graphics pipelines #546
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#546
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/497
Author: @Rain156
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:feat/native-graphics-shader-index📝 Commits (3)
1740e09shaders: index DXBC identities for Xbox native graphics pipelines9e77e97Merge remote-tracking branch 'upstream/main' into feat/native-graphics-shader-index62a9588build: track native PSO catalog dependencies📊 Changes
11 files changed (+324 additions, -15 deletions)
View changed files
📝
.github/workflows/runtime.yml(+6 -0)📝
docs/d3d12_vulkan.md(+9 -0)📝
make_game.py(+28 -2)📝
runtime/cmake/translator_deps.cmake(+6 -3)📝
tests/test_bvh_shaders_stage.py(+1 -1)📝
tests/test_cmake_translator_deps.py(+8 -6)📝
tests/test_fspx_shaders_stage.py(+3 -1)📝
tests/test_make_game_translator_flags.py(+2 -0)➕
tests/test_native_pso_hashes.py(+140 -0)📝
tests/test_shader_stage_resume.py(+6 -2)➕
tools/native_pso_hashes.py(+115 -0)📄 Description
Claimed in the coordination issue as: RT-SLOT57-NATIVE-GRAPHICS-PSO-INDEX (claim). This is the shader-index prerequisite of RT-SLOT57-NATIVE-GRAPHICS-PSO.
What and why
Xbox native graphics pipeline descriptors refer to a stage by its DXBC HASH digest. The translation index names shaders by carved filename and FSSM hash. The shaders stage now writes a local, versioned
native_hashes.txtjoining those identities. This lets a renderer recover the stage and original container for a native pipeline request.The writer validates the stage and FSSM hash, detects conflicting uses of a digest and atomically publishes the sorted catalog. An existing translation can add or refresh the catalog without rebuilding SPIR-V. The guest device dispatch is being tested separately.
Adapted from enx's GPL implementation using the format measurements by LooperSalty and KkelebekK. Original implementation
Tested
spirv-val.GPUs tested: The catalog is CPU-only. Corpus verification ran on Windows 11 x64 on the RTX 5070 Ti / NVIDIA 617.42 test machine.
AI-assisted: yes, OpenAI Codex.
Checklist
mainand merges cleanly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.