Skip to content

fix(agc): preserve metadata when registered shader headers are copied - #59

Draft
JJenkx wants to merge 1 commit into
mainfrom
fix/agc-copied-header-metadata
Draft

JJenkx wants to merge 1 commit into
mainfrom
fix/agc-copied-header-metadata

Conversation

@JJenkx

@JJenkx JJenkx commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Copied registered shader headers can put their user-data metadata in the copy while retaining pointers to register arrays in the original header. Carry the relocation proposal from upstream #5830, retain the original snapshot for those owned metadata references, and preserve shallow aliases that have no embedded user-data header. Copied headers are checked again so a changed target at a previously published address is rejected. Unaligned guest fields are read through the existing byte-copy accessor.

This is a fork draft for review and further testing. It includes the proposed boykopovar#5830 change plus compatibility corrections found while running its tests on Linux; it is not a duplicate upstream submission.

Validation on Ryzen 9 7950X / RX 6650 XT, RADV Mesa26.2.4, bundled-dependency Release with SPIRV-Tools enabled:

  • Full libraries build and all nine prepared-shader cases pass without skips.
  • The snapshot-address regression checks the copied bytes, publication at the new address, and rejection after changing the copied header's target.
  • Negative control: returning the original snapshot instead of relocating fails with “a complete copied header kept its original snapshot address”; restoring the fixed source passes.
  • Conventions and whitespace checks pass. Validated source tree is identical to this published commit after consolidating the development commits.

No native title run, FPS improvement, Windows execution, or full-suite validation is claimed for this change.

@github-actions github-actions Bot added the agc libSceAgc* label Oct 14, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant