Repository navigation
Conversation
TryMakeIndirectColumn refused every pointer hop once the record's pointer words were merged, so a T# read through a pointer loaded from a pointer-keyed record pointer stayed unplanned (Gran Turismo 7's World Map compute shaders, issue boykopovar#6191). Only buffer handles still refuse hops: the materializer keys the records by the innermost pointer before it follows the hops, and the plan's parent pointer is that innermost one.
…one-key child From hugodearaujo's change on boykopovar#8939 (Marvel's Spider-Man 2, PPSA03016).
Spider-Man 2's shape: a record keyed by a first-lane read, its dwords 2-3 a pointer, a V# loaded at that pointer plus 0xa0, and the T# read at offset 0 or 0x40 of that V#'s buffer with no second key. Two records point at V#s of different T#s; a moved record pointer and a moved V# must change the result without recompiling.
…e-family-6191
# Conflicts: # core/libs/prx/libSceAgcDriver/CMakeLists.txt
…at, 53 The format ladder along the stack is boykopovar#8939 51 and this PR 53, so a cache written by boykopovar#8939's recompiler is not read as this one's.
# Conflicts: # core/shader/recompiler/Optimization/src/ResourceTracker.cpp
…at, 55 boykopovar#8939 now takes 53, and 54 is held by boykopovar#10489, so this PR takes 55.
…at, 67 boykopovar#8939 now takes 66, and no open pull request uses a number above it, so this PR takes 67.
4769d4a is boykopovar#8939 with boykopovar#7395's merge of main after boykopovar#7223. The one conflict is this branch's FormatVersion 67.
Takes boykopovar#8939's FormatVersion 80, which is above this branch's 67; the next commit gives this branch its own number.
…at, 81 boykopovar#8939 now takes 80, above this PR's 67, so this PR takes 81, the lowest number above it that no open PR uses, and a cache written by another branch's recompiler is not read as this one's.
Moves this branch's FormatVersion to 95, above boykopovar#8939's 94.
Moves this branch's FormatVersion from 95 to 98, above boykopovar#8939's 97.
Resolve the fixed-offset case in ResourceTracker.cpp against main's SplitImmediateAddend (boykopovar#23778): keep the fixed-offset branch and split the immediate addend before the masked-offset match. FormatVersion moves to 99, the next after main's 98. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EqZu9J6tUMvmRP7RkxVCQr
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
What
This carries boykopovar#9457 by EagleBearerYS, which has had no activity from its author since Nov 26 and conflicts with
main. Two stacks are waiting on it: boykopovar#16472 → boykopovar#16631 and boykopovar#16812 → boykopovar#16814. The branch is boykopovar#9457's heada3617bb255with today'smainmerged in. All of boykopovar#9457's commits keep their authors (EagleBearerYS, and hugodearaujo for the fixed-offset change). The only changes to them are in the merge commit:ResourceTracker.cpp: fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457's fixed-offset case againstmain'sSplitImmediateAddend(fix(shader): plan masked descriptor table offsets with addends boykopovar/AnyPS5#23778). Both are kept: a fixed offset under a pointer-loaded V# takes the fixed-offset branch, and every other offset takesmain's masked-offset match with the immediate addend split off.FormatVersion: 98 → 99, the next aftermain.The full description of the two shapes, with their chains, is in boykopovar#9457. In short:
TryMakeIndirectColumnrefused every hop once the record pointer was merged. It now refuses hops only for buffer columns.The open reviews on boykopovar#9457:
main, theif (!hops.empty() && buffer) return false;guard still comes before both ofTryMakeIndirectColumn's read paths,UnwrapTableReadandPointerRecordReads/PointerRecordPairs, so a hop never reaches a buffer column on either. The three new tests were rerun (see Tested), andFormatVersionis renumbered.ImageTable.cpponmain; that case is now a passing test there. This PR adds no throw pins: its tests check sampled results, a moved pointer that must not recompile, and faults for pointers outside the snapshot. The pairedmainand branch runs with the validation layer are under Tested.main.boykopovar#9633, boykopovar#9749, boykopovar#9790 and boykopovar#9969 (also EagleBearerYS's) are carried the same way by boykopovar#16472 and boykopovar#16812, which now depend on this PR only.
Tested
Release builds.
Focused tests:
^(agc_driver_(image_table|nested|pointer)|agc_shader_(disk_cache|memory|nested_sampler))withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 ctest -V, onmain93d64f2d1eand on this head478c70f7f8. The loader log shows the validation layer loaded in every build, and no log has aVUID-line. On Windows the tests ran as a normal user, so the loader takes the layer fromVK_ADD_LAYER_PATH; the skipped test on the Intel GPU isagc_driver_image_table_vouched_lookups, which skips there onmaintoo.mainagc_driver_pointer_hop_table,agc_driver_pointer_vsharp_fixed_table,agc_driver_pointer_vsharp_fixed_offset_table): withmain'sResourceTracker.cppput back on this head, exactly these three fail on the RTX 3080 Ti, twice, each withGetImageResource dword 0 is not a valid runtime value. The other 50 pass.VUID-line. On the Intel GPU, fix(shader): let a V# read again at dispatch feed plain reads boykopovar/AnyPS5#16812 and fix(shader): let a word of a V# read again at dispatch feed a pointer boykopovar/AnyPS5#16814 fail fix(shader): index a pointer-loaded V#'s T# array by a word read from the same buffer boykopovar/AnyPS5#9969'sagc_driver_pointer_vsharp_child_key_arm_table, as reported on fix(shader): index a pointer-loaded V#'s T# array by a word read from the same buffer boykopovar/AnyPS5#9969 in November; that test is not in this PR.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)ReadConstBuffer@pc=0x8560, as in fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457; the next stop, 0x8f54/0x8fa0, needs a follow-up. Gran Turismo 7's shape is untested on that titleSupersedes boykopovar#9457.
🤖 Generated with Claude Code
https://claude.ai/code/session_01EqZu9J6tUMvmRP7RkxVCQr
Summary by CodeRabbit