fix(agc): name the fields a replaced shader header changes #2700
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2700"
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 boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-10T11:25:03Z.
What
A graphics, static or rectangle ABI resolution refuses a shader header whose bytes differ from the registered snapshot, but the refusal does not say how it differs — so a title that replaces a header cannot be diagnosed from its log without a rebuild. This names the fields that changed.
The comparison itself is unchanged:
SameHeaderstill ignoresuser_dataand still compares the same byte range, and the new helper walks a field table over exactly that range — a byte outside a named field is never reported as changed.A title hits this. PPSA26344 (Ghost of Yōtei, 01.008), Linux x86-64, lavapipe, after about 1,300 shader compilations on a cold cache, a presentation window and a swapchain:
Every changed field is a pointer, and
code,file_header,version,header_size,shader_sizeandtargetall match — so the title presents a header at the same shadercodeaddress whose register and semantic sub-arrays live elsewhere. Whether those arrays hold equivalent content, and whether a replaced header should be accepted rather than refused, is not something this change decides; it only makes the refusal diagnosable, which the log could not.Reaching that line takes one other change: with this change alone the title stops earlier, at
unsupported scalar source operand code 235 at program counter 856(issue #1920, which #1940 addresses), so it never reaches this ABI path. TheTechnicalDebt.mdentry added here records the refusal and that PPSA26344 stops there; this body carries the extra fact that the aperture-source change is needed to get that far, so the next person does not hit the earlier wall and conclude this one was unreachable.Tested
Linux x86-64, Release build, lavapipe (llvmpipe) as the Vulkan device.
ctest -R prepared_shaders→ 7/7 pass, includingagc_driver_prepared_shaders.py-driven modes; thetargetcase inPreparedShaders.cppnow assertsreplaced shader header (changed: target).tools/check_conventions.py→ all checks passed.tools/check_test_registration.py→ 557 executables, 0 built and not run as recorded, none new.(changed: …)line quoted above — that line is from the title, not from a unit test.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T11:25:13Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Pull request closed