Repository navigation
Conversation
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
|
|
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. |
|
This couldn't be reopened: the branch was force-pushed after the close. The new head ( Besides the brace: the description says the update is synchronized under |
|
Fixed the missing closing brace on |
|
Updated in
Ready whenever you want to open it from |
|
Intake is open again, so please open a new PR from |
|
Opened #4043 from |
Fixes #2914.
What
In titles such as Astro's Playroom (PPSA01325), shader ABI resolution calls (
ResolveGraphicsStagesAbi,ResolveShaderAbi,ResolveGraphicsAbi) can pass aShader*whose code pointer matches a registered shader, but whose header is allocated or copied at a different guest address.When
SameHeadervalidates the relocated header,snapshot.headerAddressandsnapshot.headerwere not updated to the new copy. Because the header contains absolute guest pointers (such asshader.user_data, input semantics) that are relative to the header address, downstream decoders (DecodeVertexStageInfo/_readHeaderPod) compute offsets against the mismatched base address and throwAGC graphics: AGC header pointer is outside the registered shader header.This change:
ShaderSnapshot::headerAddressandShaderSnapshot::headeras mutable.headerAddressand re-reads the header bytes viaGuestMemory::CheckRangeandmemcpywhen the resolved shader pointer differs from the registered snapshot address, synchronized undermutex.PreparedShaders.cpptests with a relocated full header copy.TechnicalDebt.mdaccordingly.Tested
python tools/check_conventions.py --base origin/main(passed).python -m unittest discover tools/tests(52/52 passed).git diff --check(clean).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