Repository navigation
fix(libSceAgc): encode SET_PREDICATION arguments as the console does - #19338
Merged
oneandonlydean merged 2 commits intoNov 16, 2026
Merged
oneandonlydean merged 2 commits into
oneandonlydean merged 2 commits into
Conversation
The condition, wait operation and operation keep their low bits, and a null or misaligned address is accepted with a non-zero operation, as prosper's console measurements show. Three oracle rows now match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 tasks done
Contributor
|
Windows check of head
AI-assisted: yes. |
12 tasks done
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
12 tasks done
12 tasks done
12 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
sceAgcDcbSetPredicationthrows for argument values that the console encodes. In prosper's console measurements (agcbuild_DcbSetPredication_a/b/c), the console:0x11, 0x22, 0x33and1, 2, 3both wrote0x00021100;0x22, 0x44, 0wrote0x00040000;4was written as 0);WritePredicationnow masks those three fields instead of refusing them. It no longer refuses a null or misaligned address when the operation is non-zero. The address keeps its existing low-four-bit clearing (0x44444444→0x44444440).The count argument is still ignored, as on the console (
0x55555555and5changed nothing). Valid arguments still produce the same packets. The three rows now match the console and are removed fromknown.tsv.This changes only the libSceAgc builder. How the driver runs SET_PREDICATION is the separate open #19120.
Sources: the rows above, from prosper's pinned console measurements, SHA-256
aa6cc7b818a1016c20732e4547cea8c12b0472aec681bcf11f8f9a3c897f7de3, checked bylibrary_oracle.py.testConsoleArgumentsintests/Predication.cppchecks the three cases word for word. It adds the missing<algorithm>forstd::equal.Tested
Windows 10 22H2, AMD Radeon RX 6750 XT (gfx1031), Adrenalin 26.10.1 (driver 32.0.21045.16010), WinLibs GCC 15.2, Release. Main
b00dc5a6b7, change55ec65483c.known.tsv: 95 compared, 0 new, and exactly the threeDcbSetPredicationrows reported as now matching;known.tsv: 153 known findings, 0 new, 0 now matching.ctest -R '^(agc_predication.*|agc_commands|agc_driver_job_manager_compute|agc_driver_queued_index_read_order|agc_driver_queued_indirect_read_order)$'passes 5/5.VK_LAYER_KHRONOS_validation1.4.367, with 0VUID-lines and no missing-layer warnings.agc_predication_testsfails withsceAgcDcbSetPredication: reserved bits are set (value 0x11, allowed 0x1).pr_overlap.py --branchreports only fix(libSceAgc): encode index buffer state for the arguments the console encodes #19194, inknown.tsv. It removes theDcbSetIndex*rows directly above theDcbSetPredicationrows removed here, so whichever merges second needs a one-line rebase. No code is shared.known.tsv, are clean.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code