Browse SGD5 effect hierarchies and expose verified shader bindings #59

Manually merged
github merged 7 commits from gh-pr/59/head into gh-pr/59/base 2026-11-27 02:33:22 +00:00
Owner

@⁠Xyzstk on GitHub · 2026-11-24 20:33 UTC · original
Xyzstk:sgd5-effect-browser → main · +8025 −1377 · 13 files · 7 commits · merged 2026-11-25 09:46 UTC

SGD5 previously exposed a flat shader list and could not retain the effect/pass responsible for a shader's runtime bindings. This change adds an effect → technique → pass → shader browser, verified parameter mappings, and inspection of every compiled native variant.

  • Decode effect, technique, pass, reflection/property, binding, render/sampler state, and compact PRIV root records. Validate record links, defaults, pass usage, compute selectors, and the effect's runtime allocation size while retaining unresolved fields.
  • Preserve effect/technique/pass context in Parameters, ASM, and experimental HLSL exports. Show material parameters/defaults, typed proplst properties, vertex inputs, selected binding layouts, shared tables, and complete variant libraries. Cache navigation, decompression, metadata, and shader text; make SGD5 the initial view.
  • Follow the XDAT/XBCH index with bounds and inflate-size checks to expose all native variants, including alternate VS/ES programs. Display actual hardware stages separately from SGD5 stage libraries and export the selected variant.
  • Decode FSSM compiler root/resource tables and join resource identities to original registers/spaces, PRIV roots, descriptor offsets, and compiler user-data/SGPR locations. Expose register counts, wave/LDS configuration, structured-buffer strides, stage I/O, mesh limits, and pixel export alternatives while preserving original ISA.
  • Correct stencil reference and nine-bit depth/blend state indices, rasterizer multisampling/flags, and depth-bounds labels from executable consumption. Show sampler addressing, LOD, border color, anisotropy, and retained filter/comparison bits.

Validation: application build; 161 ordinary tests passed; four targeted real-archive regressions passed, including headless browser checks through Parameters, ASM, HLSL, and alternate native selection; git diff --check. Native coverage includes 26,698 programs in 26,503 containers, 5,214,262 layout records, 445,625 usage records, 385,337 table-resource joins matching PRIV and reflection, and all 2,689 compute dimensions matching PSV0. The archive contains 932 effects and 28,798 passes.

See docs/SGD5-layout.md, docs/SGD5-pipeline.md, and docs/FSSM.md for layouts, executable evidence, and opt-in regression commands. Compiler locations describe the entry ABI; individual instruction uses still require data-flow analysis. Effect aggregate format merging and the extra vertex mask remain unresolved. HLSL/SPIR-V lifting remains experimental; these metadata checks do not establish translation equivalence.

**@⁠Xyzstk** on GitHub · 2026-11-24 20:33 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/59) `Xyzstk:sgd5-effect-browser` → `main` · +8025 −1377 · 13 files · 7 commits · merged 2026-11-25 09:46 UTC SGD5 previously exposed a flat shader list and could not retain the effect/pass responsible for a shader's runtime bindings. This change adds an effect → technique → pass → shader browser, verified parameter mappings, and inspection of every compiled native variant. - Decode effect, technique, pass, reflection/property, binding, render/sampler state, and compact `PRIV` root records. Validate record links, defaults, pass usage, compute selectors, and the effect's runtime allocation size while retaining unresolved fields. - Preserve effect/technique/pass context in Parameters, ASM, and experimental HLSL exports. Show material parameters/defaults, typed `proplst` properties, vertex inputs, selected binding layouts, shared tables, and complete variant libraries. Cache navigation, decompression, metadata, and shader text; make SGD5 the initial view. - Follow the XDAT/XBCH index with bounds and inflate-size checks to expose all native variants, including alternate VS/ES programs. Display actual hardware stages separately from SGD5 stage libraries and export the selected variant. - Decode FSSM compiler root/resource tables and join resource identities to original registers/spaces, `PRIV` roots, descriptor offsets, and compiler user-data/SGPR locations. Expose register counts, wave/LDS configuration, structured-buffer strides, stage I/O, mesh limits, and pixel export alternatives while preserving original ISA. - Correct stencil reference and nine-bit depth/blend state indices, rasterizer multisampling/flags, and depth-bounds labels from executable consumption. Show sampler addressing, LOD, border color, anisotropy, and retained filter/comparison bits. Validation: application build; **161 ordinary tests passed**; four targeted real-archive regressions passed, including headless browser checks through Parameters, ASM, HLSL, and alternate native selection; `git diff --check`. Native coverage includes **26,698 programs in 26,503 containers**, **5,214,262 layout records**, **445,625 usage records**, **385,337 table-resource joins** matching `PRIV` and reflection, and all **2,689 compute dimensions** matching `PSV0`. The archive contains 932 effects and 28,798 passes. See `docs/SGD5-layout.md`, `docs/SGD5-pipeline.md`, and `docs/FSSM.md` for layouts, executable evidence, and opt-in regression commands. Compiler locations describe the entry ABI; individual instruction uses still require data-flow analysis. Effect aggregate format merging and the extra vertex mask remain unresolved. HLSL/SPIR-V lifting remains experimental; these metadata checks do not establish translation equivalence.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:33:20 +00:00
github manually merged commit 5f0b5390e1 into gh-pr/59/base 2026-11-27 02:33:22 +00:00
Author
Owner

@⁠rpatty-dev on GitHub · 2026-11-25 09:46 UTC · original

This is a big one, thank you. The effect, technique and pass view makes the shaders far easier to follow. Builds fine on top of the other merges. Merged.

**@⁠rpatty-dev** on GitHub · 2026-11-25 09:46 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/59#issuecomment-7158776724) This is a big one, thank you. The effect, technique and pass view makes the shaders far easier to follow. Builds fine on top of the other merges. Merged.
This discussion has been locked. Commenting is limited to contributors.
No description provided.