Repository navigation
fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer - #8939
EagleBearerYS wants to merge 40 commits into
Conversation
…ed record pointer A T# loaded through a record pointer was still refused with "GetImageResource dword 0 is not a valid runtime value" when the pointer's low word passed ANDs with lane masks, as a waterfall loop that copies EXEC into the pointer's SGPR builds them, or when its high word was a Phi of the record's high word read under several keys. For a pointer-keyed column, the walk of the low word now takes an AND with a lane-mask operand (a Ballot word, or an AND or Phi of only Ballot words and immediates) and keeps walking its other operand, so its record reads must still match the column and anything else still refuses. The high word is walked the same way: its record reads must be the record word at the low word's offset plus 4. A high word that is one read still gives the column its table and record offset, as before. Otherwise the table comes from a record read whose V# words are defined before the descriptor load, and the record offset from the high word, which the GPU does not read for a pointer-keyed column. A high-word arm read from another buffer, such as one whose V# is loaded through a pointer, stays refused. A shader that planned before plans the same way, so the disk-cache format does not change.
… a pointer-keyed record pointer A T# loaded through a record pointer was still refused with "GetImageResource dword 0 is not a valid runtime value" when a Phi of the pointer's low word merged the record read, a zero, and the waterfall's lane mask with the handled lane's bit cleared, BitwiseAnd32(CompositeExtractU32x4(Ballot(...), 0), BitwiseNot32(ShiftLeftLogical32(1, index))), as s_ff1, s_lshl and s_not with s_and, or s_andn2, build it in the SGPR the pointer reuses. The walk took only Ballot words and ANDs of them as lane masks, so it walked into the NOT and refused. A lane-mask operand is now a Ballot word or the loop's lane bit, a shift of 1 by an index from FindILsb32, FindUMsb32 or ReadFirstLane (through the AND, add, subtract and select that s_ff1_i32_b64, s_bitset0 and the shift's own mask put around it), or an AND, OR, NOT or Phi of only those and immediates. An arm of the pointer that is entirely such an operand is skipped. An AND with a record read in it still has the read matched against the column, and anything else still refuses. agc_driver_pointer_phi_lane_not_table builds that shape in a wave64 waterfall: the low word's Phis merge the record read at +0, a zero and the lane mask without the handled lane's bit, cleared by s_not and s_and and by s_andn2, and the high word is one read at +4. Each lane samples the T# of its record, and every masked word faults outside the snapshot. agc_driver_pointer_vsharp_select_table reads a record keyed by ReadFirstLane(SelectU32(LogicalAnd, IAdd32, Phi)), a pointer from it, a V# through the pointer and the T# through the V#; it passes without this change and keeps that chain checked, including a record pointer moved to the other V# without a recompile. Shaders that planned before plan the same way, and a refusal is never cached, so the disk-cache format does not change.
…keyed records A pointer-keyed record pointer now also takes lane-mask ANDs, the waterfall loop's lane bit and its OR and NOT forms, and a high word merged from the record's next word. A high word read from a second buffer stays refused.
|
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.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
@EagleBearerYS thanks for #8939. We ran PPSA01474 on The IR shows which check refuses it, and why that arm isn't a pointer:
So on the one path where the high word comes from the second buffer, the "pointer" is (a lane mask, a T#-table dword). That's the SGPR pair being reused by the waterfall loop, not an address. Tamalero's dump on #6191 (issuecomment-6255548496) agrees: the record's high word is Could the walk pair the two words by incoming edge? Concretely:
This decides it at plan time from the IR alone, with no run-time fault path and no new plan field. If you'd rather keep the walks separate, a run-time fault for pointers built from that arm (as lane-mask pointers already do) would also work for us. We can share the IR excerpt around 0x9a30, and we're happy to run the title on the result. |
The low and high words of a pointer-keyed record pointer were walked separately, so a high-word arm on a path whose low word is a lane mask refused the plan even though that pair is no pointer. Ratchet & Clank: Rift Apart (PPSA01474) stops this way at LoadAddressU32@pc=0x9a30: one high-word arm reads a second buffer, and on that edge the low word is a lane mask, the waterfall loop reusing the SGPR pair. Walk the two words together. Where both are Phis of one block, each low-word edge takes the high word of the same predecessor. An edge whose low word is a constant or a lane mask is skipped with its high word. A record low word still needs every high word it can meet to be a constant, a lane mask or the same record column at offset + 4, so a second-buffer high word paired with the record word stays refused. agc_driver_pointer_phi_high_second_lane_table adds the lane-mask low word to the second-buffer arm: it plans, each group samples the T# its record selects, and that arm faults outside the snapshot.
…nter The two words of the pointer are now walked edge by edge, and an edge whose low word is a constant or a lane mask is skipped with its high word. A high word read from a second buffer stays refused on an edge whose low word is the record word.
|
@oneandonlydean, thank you for reading the IR this closely. The edge-by-edge pairing is the better fix, so I've written it as you describe, with both cases: |
…walk red/green and Linux CI mirror
|
@oneandonlydean, thank you for the IR dump and the steps. a7d1e62 on this branch pairs the two words as you describe:
There's no new plan field and no new run-time path. Tested on GitHub's runners, on
One shape that planned before is now refused. Both Phis are in one block, one edge carries the record's low word with an immediate high word, and the other carries a lane mask with the record's high word. No edge carries a whole record pointer, so the old plan could only fault at run time there. If you'd rather keep it planned, falling back to the old separate high-word walk when the paired walk finds no high read keeps it as before. Could you run Ratchet & Clank: Rift Apart (PPSA01474) on a7d1e62? If it stops again, the IR excerpt around the new stop would help. |
|
Retail check of a7d1e62 on Ratchet & Clank: Rift Apart (PPSA01474, 01.005.003), Linux, RTX 4090 (NVIDIA 615.78.08), cold shader cache, one unattended run per build:
The new chain has the same overall shape one level deeper. The low word is a Phi of the record read at So a7d1e62 fixes the 0x9a30 stop on the retail title. No regression up to the new stop. I can dump this shader's IR or the runtime values of the Tested and written by Claude (AI assistant) on a contributor's machine. |
|
@Tamalero, thank you for the retail run. It's now in the description: this PR gets Ratchet & Clank: Rift Apart (PPSA01474) past the 0x9a30 stop. We'd like to look at the 0x10b84 stop next. If you have time, the IR dump would help most:
If it's easy, the runtime values would help too: on the dispatch that stops, the dword the We'll read the dump before saying what the fix is. |
…ane-masks Brings boykopovar#7395's merge of main bd4d801, with boykopovar#8991. It merged without conflicts.
|
Marvel's Spider-Man 2 (PPSA03016 01.004.003, the US release of spiff637's PPSA08338) still stops on the #6191 chain with this PR, so #7395 with #7223 doesn't take this title's shape yet.
Linux 7.2.11, RX 9070 XT, RADV Mesa 26.2.5, Release. One run on The shape.
A local change for that part. A fixed offset under a pointer-loaded V# becomes a one-key child: key 0, stride the descriptor size, addend the immediate. It applies only on the nested path; a fixed offset under a runtime V# still refuses as before.
diff on a7d1e62@@ -660,7 +660,13 @@
if (address && immediateU32(offset, descriptorOffset)) {
return TryMakeIndirectColumn(handle, *heapHandle, sampler, words, descriptorOffset, first, plan);
}
- if (!MatchAffineOffset(offset, key, stride, addend)) {
+ std::uint32_t fixedOffset = 0;
+ const bool fixed = !address && !buffer && immediateU32(offset, fixedOffset);
+ if (fixed) {
+ key = &m_builder.Constant(0u);
+ stride = width * static_cast<std::uint32_t>(sizeof(std::uint32_t));
+ addend = fixedOffset;
+ } else if (!MatchAffineOffset(offset, key, stride, addend)) {
if (!MatchMaskedOffset(offset, key, stride)) {
return false;
}
@@ -668,7 +674,9 @@
}
DescriptorSource heapSource;
std::uint32_t heapIndex = 0;
- if (!MakeRuntimeSource(*heapHandle, address ? IrOpcode::GetAddressResource : IrOpcode::GetBufferResource, address ? 2u : 4u, heapIndex, heapSource)) {
+ if (MakeRuntimeSource(*heapHandle, address ? IrOpcode::GetAddressResource : IrOpcode::GetBufferResource, address ? 2u : 4u, heapIndex, heapSource)) {
+ if (fixed) return false;
+ } else {The next refusal, in the same shader (pc 0x8f54 and 0x8fa0):
I haven't tried to take this second shape; how a linked pointer should be planned is your call. I can share the request file and the IR around 0x8f54. |
|
@hugodearaujo, thank you for the runs and for tracing both refusals. Your fixed-offset change is right: a T# at a fixed offset of a V# loaded through the record pointer has one record (key 0, the descriptor size as stride, the immediate as addend), which the nested path already serves, and a fixed offset under a runtime V# still refuses as before. We'd like to carry it as your own commit, with you as its author, in a new PR stacked on this one, together with tests of ours for that shape. If you'd rather open it yourself, say so and we'll leave it to you. For the linked-pointer shape at 0x8f54 and 0x8fa0, the IR text around those reads would help. We don't need the request file, since it holds the title's shader code. |
|
@EagleBearerYS here's the IR reading for the 0x10b84 stop. The address changes per run (0x116bb5ad00, 0x116bb61300 and 0x116bb5c500 in three runs on a7d1e62), so I captured the failing request with Short version: the edge pairing works here. Every (low, high) pair the walk pops is consistent, and the case your PR still refuses (a record low word under a second-buffer high word) doesn't occur. The stop has a different cause: the pointer has three sources, and only the first is the record column.
H1 and H2 both fail So the shader chases the pointer conditionally, up to twice (P → V# at P+0x60 → dwords 0/1 → next P), and loads the T# at the final P+0. The final pointer is one of R, H(R) or H(H(R)). Since the column is pointer-keyed and the runtime looks the T# up by pointer value (
The existing I haven't checked whether the H(R)/H(H(R)) targets fall inside the captured regions. I can run a values pass on this shader if that helps. Tested and written by Claude (AI assistant) on a contributor's machine. |
|
@Tamalero thanks, this is the reading we needed, and the replay through It's new work rather than something #9457 covers. #9457's hops follow unconditional chains of plain address loads, while here the descriptor pointer is a Phi of R, H(R) and H(H(R)), and each hop reads the next pointer through a V# at P+0x60. A chase-hop closure along the lines you describe is planned as a separate PR stacked on #9457, built and tested with a synthetic chase shader. The If you can run the values pass, three things would help:
No need to send the capture itself. Once there's a candidate, a replay on your side is what we'd ask for. |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — comments
Changes are not ready for a formal approval because I did not run the checks reported by the author, and one changed test file was excluded from the review bundle.
What I ran
Reviewed head b4a5b1a618ed89404bd05fc910337720844641b1 against the prepared diff. No commands or tests were run.
Results
| Check | Result | Note |
|---|---|---|
| Diff and targeted source review | passed | Shader tracking and materialization paths inspected |
| Tests | not run | Test results in the PR description are author-reported |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full contents of core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp were excluded from the review bundle; its changed hunk was inspected through the reader. The complete changed test files were not read in full. Tests, builds, and physical-console behavior were not independently verified. Other changed files were reviewed through the diff and targeted source ranges.
To get this to a good state
Nothing is required.
|
On an RTX 4090 (NVIDIA 621.14, Windows 11, MinGW build), this PR's head b4a5b1a fails two of its tests 3 of 3 times: |
…pointer tables agc_driver_pointer_phi_lane_and_table and agc_driver_pointer_phi_lane_not_table pair arms whose low word can be 0 with the record pointer's high word: lane_not_table's zero arm, and lane_and_table's lane-mask arm in the waterfall pass over lanes 32-63. When the records sit below 4 GiB, the selected pointer is then 0x0, which faults as unmapped, as a null pointer does in agc_driver_pointer_phi_sampler_table. The records are on the test's stack. Since boykopovar#18253, Windows test executables link without high-entropy addresses, which keeps their stacks near the bottom of the address space, and on a Windows RTX 4090 run both tests failed with "selected the descriptor at 0x0: unmapped". Accept that fault only when the records' high word is 0; elsewhere these arms still have to fault outside the snapshot.
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head 5eb49d189318c048e10d2848f769d58f2c215ccb. No commands or tests were run. Read the prepared description, commits, manifest, full diff, and targeted head context in ResourceTracker.cpp, ResourceMaterializer.cpp, and ShaderMemory.cpp through repo_read.py.
Results
| Check | Result | Note |
|---|---|---|
| Changed logic review | passed | Pointer planning and snapshot paths inspected |
| Tests | not run | Reported test runs were not independently rerun |
| Changed file coverage | not run | One changed file was excluded from the review folder |
Findings
Blocking
None.
Non-blocking
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas available through the reader and the changed snapshot retry helper was inspected. Other changed lines in that large file were not examined; no issue is established from that limited review.
Not verified
- The full text of
ShaderMemory.cppwas excluded from the prepared review folder because it was too large. Only lines 3980–4050 were read throughrepo_read.py; other changed lines there were not reviewed. - No tests, builds, GPU runs, or console behavior were independently verified. The test and title-run results in the PR description are author-reported.
- Full text was available and reviewed for the other changed files listed in the manifest; targeted ranges were read for the large
ResourceTracker.cpp,ResourceMaterializer.cpp, andShaderMemory.cppfiles rather than their entire contents.
To get this to a good state
Nothing is required. Optional: run the focused tests on the current head and inspect the remaining changed lines in ShaderMemory.cpp.
|
@frankea thanks for the Windows RTX 4090 run, and for checking #9457, #9790 and #9969 too. Both failures were in the tests, not in the driver change: 5eb49d1 lets those checks accept that fault only when the records' high word is 0; elsewhere they still have to fault outside the snapshot. On GitHub's Linux runner, with the records mapped at 1 GiB by a verify-only commit, the old checks fail 3 of 3 in exactly those two tests on the same 0x0 line (job), and the fix passes ×10 (job); at the normal layout it passes ×10 too (job). It's merged into #9457, #9633, #9749, #9790 and #9969. GitHub's Windows runner has no Vulkan device, so the GPU case itself wasn't re-run there. |
|
Title data point for this PR (data only, no picture judged). Title: PPSA03685, four runs, each with a limit of 300 s, through a run queue, no input sent, Windows 10 Pro, WinLibs GCC, Release; relinker and all libraries built from each tree. GPU: NVIDIA GeForce RTX 4080 SUPER ( Order and start times (UTC, 18 Nov 2026): B 13:57:54, B 14:02:38, A 14:07:45, A 14:11:59.
With this PR the Not run: AMD, Linux, other titles, the PR's tests. The two arms were built at different times (arm B libraries and relinker from 18 Nov morning, arm A from 16 Nov), each from its own tree. AI-assisted (Claude Code). |
|
Ghostrunner (PPSA03685) data point on current |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
Nothing I inspected shows a verified defect; I did not run checks, and one changed file was excluded from review.
What I ran
- Reviewed head
606212c86eb33d30a8de2abf6a86edfbc0a9b289using the prepared diff andrepo_read.pyfor targeted source ranges. - No commands or tests were run.
Results
| Check | Result | Note |
|---|---|---|
| Diff and source review | passed | Core pointer walk and materialization reviewed |
| Tests | not run | Author-reported runs are not independent runs |
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded from the review bundle because it was too large; its changed ranges were read throughrepo_read.py.- Other changed files whose full text was included but whose code was outside the relevant reviewed paths were not read in full. The author reports broad CI, GPU, and title testing in the PR description; these runs were not independently verified.
To get this to a good state
Nothing is required.
|
Windows 11 23H2 (22631), Ryzen 7 5700X, NVIDIA RTX 4060 (driver 616.56), WinLibs GCC 15.2.0 r7, Release, merged into New tests |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — changes requested
Changes are required before merge: ensure the pointer’s low and high words come from the same record key.
What I ran
- Reviewed head
2eecdd6fc81103facf10c6939d67778700e36c0ausing the prepared review diff andrepo_read.py. - No tests or build commands were run.
Results
| Check | Result | Note |
|---|---|---|
| Diff and targeted code review | failed | Found a pointer pairing defect |
| Tests | not run | No local test run |
Findings
Blocking
core/shader/recompiler/Optimization/src/ResourceTracker.cpp:983—SameRecordColumncompares the buffers, strides, and addends, but never compares the affine keys. The paired walk can therefore accept a low-word read indexed by one key and a high-word read indexed by another. Materialization then combines the two dwords from the same record index, which may not represent either source pointer. Require equivalent affine keys before treating the reads as the same record column.
Non-blocking
- None.
Not verified
- Read the full text of the changed files
ShaderDiskCache.cpp, both changed CMake test files,ImageTable.cpp,ResourceMaterializer.cpp, andResourceTracker.cpp, plus targeted portions of the diff and repository context. ShaderMemory.cppwas excluded from the review folder as too large; its changed hunks were visible in the prepared diff, but its full text was not read. The remaining changed files listed inmanifest.jsonwere not read in full. Tests and builds were not run; author and CI results in the PR description were not independently verified.
To get this to a good state
- Compare the affine keys in
SameRecordColumn, and add coverage showing that low and high reads with different keys are rejected. Re-run the focused pointer-table tests on the updated head.
|
@MarcZX10 thanks for the review. On
So if a shader takes its low word from one key and its high word from another, the lookup uses the pointer it actually built. It finds a descriptor only when some record holds exactly that pointer, which is then the descriptor at the address the shader reads through, and otherwise it misses, as any pointer outside the snapshot does. Requiring equal keys would only refuse that table instead. I'd rather leave |
|
@MarcZX10 I checked the key concern on 3a24890. You are right that |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing in the reviewed changes blocks merging; the focused code inspection supports the new pointer-word handling, though this review did not run checks.
What I ran
- Read the prepared diff and changed-file contents at head
3a248901892f2454fe86b7dfc97640d739253823usingrepo_read.py. - No commands or tests were run.
Results
| Check | Result | Note |
|---|---|---|
| Changed-code inspection | passed | Tracker logic and test changes read |
| Build and tests | not run | No local execution |
Findings
Blocking
None.
Non-blocking
None.
Not verified
- Runtime behavior, build, and tests were not independently verified; reported CI and title runs in the description were not run for this review.
- Read:
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_tests.cmake,core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp,core/shader/recompiler/Optimization/src/ResourceTracker.cpp,core/shader/recompiler/ShaderDiskCache.hpp, anddocs/dev/debt/shader.md(changed sections only). No changed files were excluded by the manifest.
To get this to a good state
Nothing is required.
|
I replayed one recompile request offline against this change and wanted to leave the result here. It is a single request, so it is a data point, not a claim that the title works. What I ran: the offline shader replay tool (CPU only, no GPU) on one recompile request of a compute shader from a PS5 title that currently stops at
What it does not do: ten other requests from a different title that fail with For comparison, the same request with #21763 (head The shader is not fully prepared with this change (next error above), so I would not read this as "fixed", only as: the table-walk rejection for this form is lifted in the one request I tried. AI-assisted (Claude Code). |
|
On the failing
I checked it on Windows: Windows 11 Pro 26200, Intel i7-11850H, WinLibs GCC 15.2.0 r7, Release,
So the only difference is the test fix from AI-assisted. |
|
@EagleBearerYS the AI-assisted. |
What
Depends on: #7395. #7223, which #7395 was stacked on, has merged. Until #7395 merges, this PR's diff shows its commits too.
#7395 lets a T# or S# be read through a pointer that a scalar-buffer record holds, with the pointer's low word merged by Phis with constants, lone
Ballotwords and copies of the record word. Two titles' chains refused on the pointer's words:Ballotmask ANDed with theNOTof the loop's lane bit, thes_andn2that clears the current lane.main82f0c9a plus open PRs and feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's earlier commits:Ballotword is ANDed into the low word, and the high word is merged through a Phi. One arm of that Phi reads a second buffer, and on that edge the low word is a lane mask: the waterfall loop reusing the SGPR pair, as oneandonlydean read it from the IR (comment).Ratchet & Clank: Rift Apart (PPSA01474), 11-13: this PR got the title past its 0x9a30 stop on retail in Tamalero's run (see Tested); the next stop, 0x10b84, was #9633's. On current
mainthe title doesn't stop there. #14636 removed the title'spc=0x62d4GetSamplerResourcerefusal: with #14636's merge reverted,mainf57c971 aborts on it again (dantdmdarealguy's run). Tamalero's run ofmain4e2acc2 with #18522, on RADV withAPS5_MAX_COMPUTE_SPIRV_WORDS=2000000andAPS5_SKIP_REFUSED_DISPATCHES=1(which skips and logs any compute shader whose recompile fails, code), reaches the first gameplay; the only shaders it skipped were two dropped for size (comment).mainstill refuses this PR's shapes: onmain7201da4, which has #14636, four of this PR's five tests fail 3 of 3 with #7395 merged and this PR's code left out, and pass 3 of 3 with this PR merged (llvmpipe, a cloud Linux machine). The fifth,agc_driver_pointer_vsharp_select_table, passes either way, as before (see Tested).The change, in
ResourceTracker.cpp, for pointer-keyed columns only:fix(shader): take lane-mask ANDs and a high-word Phi in a pointer-keyed record pointer.Ballotword, or an AND or Phi made only of those and immediates. The other operand is walked on, so a record read in it must still match the column. An AND with no lane-mask operand still refuses.fix(shader): skip lane-mask arms built from a waterfall's lane bit in a pointer-keyed record pointer.ShiftLeftLogical32(1, index), and ORs and NOTs of lane-mask operands.FindILsb32,FindUMsb32orReadFirstLane, throughBitwiseAnd32,IAdd32,ISub32, immediates and the arms ofSelectU32.s_ff1_i32_b32,s_ff1_i32_b64,s_bitset0_b32and the shift's ownAND 31.docs(shader): the image-table debt entry lists the new arms and the merged high word, and says that a high word read from a second buffer stays refused.fix(shader): pair a pointer-keyed record pointer's two words by Phi edge, from oneandonlydean's reading of Ratchet & Clank: Rift Apart's IR (comment).docs(shader): the debt entry says the two words are walked edge by edge, and that a second-buffer high word stays refused on an edge whose low word is the record word.fix(shader): refuse a pointer-keyed record arm whose two words are both immediates(9e50a74). Where the pointer's two words are Phis of one block, an edge on which both are immediates is a constant pointer that no record holds, such as a null pointer, so the walk refuses the column there instead of planning it.At run time, a pointer built from a lane mask faults as outside the snapshot, as #7395's lane-mask arms do.
Disk cache: no plan field changes. This PR still takes its own number on the stack's format ladder, 94 (see Tested).
mainis at 88 since Pipodi's #18455. Ours take one number each: #7642 62 (a draft, held; it takes a free number at its refresh), #7395 93, #8939 94, #9457 95, #9633 96, #9749 97, #9790 98 and #9969 99. The other open PRs changing it hold 89 (#14871, #19852, #21199 and #21240), 90 (#6416, and #16812 and #16814, both stacked on #9969), 91 (#10351) and 92 (#14853), and the rest hold numbers at or belowmain's, from a check of every open PR's head on 11-16. Whichever lands second on a number takes the next free one.Overlap:
FormatVersionconflict keeps this PR's number, above feat(agc): opt-in bindless image heap for sampled image tables #20519's 89. Merge order: this stack first, as proposed in feat(agc): opt-in bindless image heap for sampled image tables #20519's thread (comment). If feat(agc): opt-in bindless image heap for sampled image tables #20519 lands first, a merge ofmainresolves it here.Marvel's Spider-Man 2 (PPSA08338), run by spiff637 (comment), stops on a record → pointer → V# → T# chain keyed by
ReadFirstLane(SelectU32(LogicalAnd, IAdd32, Phi)). The second commit'sagc_driver_pointer_vsharp_select_tablebuilds a record → pointer → V# → T# chain with the T# read under a second key, and it passes without this PR's tracker changes. The title doesn't take it yet: hugodearaujo's run of the US release, Marvel's Spider-Man 2 (PPSA03016), still stops on the #6191 chain with this PR and #7679 (comment). There the T# is read at a fixed offset of the pointer-loaded V#, with no second key, and the same shader then reads its next block through a linked pointer. The test stays as coverage of the keyed form. ycbuzi's Windows run (RTX 4070 SUPER) stops on the same chain, atpc=0x84bc, with this PR's earlier head 95c2a47 and without it (comment).Tested
tests/execution/ImageTable.cpp, on lavapipe. They are synthetic wave64 waterfall loops, assembled withllvm-mc -mcpu=gfx1030 -mattr=+wavefrontsize64. The fourth commit's is the second-buffer shader with one instruction added (s_mov_b32 s44, exec_lo,0xbeac037e) and its three crossing branch offsets adjusted, checked by disassembly.agc_driver_pointer_phi_lane_and_table(lane-mask ANDs),agc_driver_pointer_phi_high_table(a merged high word) andagc_driver_pointer_phi_high_second_table(the second-buffer arm, which refused; 4750c85 later removed this test, see below).agc_driver_pointer_phi_lane_not_table(Little Nightmares'BitwiseNot32ands_andn2arms) andagc_driver_pointer_vsharp_select_table(Spider-Man 2's chain).agc_driver_pointer_phi_high_second_lane_table(Rift Apart's edge: the second-buffer high word with a lane-mask low word, which must plan).ResourceTracker.cppreverted and the tests kept, on Linux with CI's configuration:lane_andandhighfail with the dword-0 refusal, andhigh_secondpasses (refused). Each half of the commit fixes only its own test.lane_notfails:GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000c0(GetAddressResource(Phi(Immediate, Phi(ReadConstBuffer@pc=0x00000074(…), Phi(BitwiseAnd32(CompositeExtractU32x4(Ballot(LogicalAnd), Immediate), BitwiseNot32(ShiftLeftLogical32(Immediate, BitwiseAnd32))), ….vsharp_selectpasses (coverage).high_second_lanefails:GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x00000108(GetAddressResource(Phi(Phi(ReadConstBuffer@pc=0x0000007c(…. The other 10 image-table cases pass,high_secondamong them (refused).agc_shader_disk_cache.agc_shader_disk_cachepass 5 runs in a row on Linux. On Windows the GPU ones skip and the rest pass. The libc and libkernel suites pass on both.agc_shader_disk_cache_large_filepass 5 runs each. Windows: builds; the Vulkan cases skip on the runner.^agc(run): 813 of 874 pass, 60 skip and 1 fails. The one failure isagc_driver_sgpr_pattern_fill_keys, a timing test, which passed in the worker's full run of the same head.GetImageResource dword 0,LoadAddressU32@pc=0x9a30.GetImageResource dword 0,LoadAddressU32@pc=0x10b84.pc=0xfd94and aBallotlane-mask word. The high word's other arm isReadConstBuffer@pc=0x10350, through a V# whose four dwords are loaded atpc=0x10338from another pointer.main0db47b2. The only conflict wasShaderDiskCache.hpp'sFormatVersionline:mainmoved to 45 (fix(shader): normalize offset perspective barycentrics after interpolation #7831), and this branch keeps its 46. On GitHub's runners (run), the pointer, nested, image-table and disk-cache sets (22 tests) pass 10 runs in a row on Linux. On Windows the set has 24, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 19, which need a Vulkan device, skip. The libc and libkernel suites pass on both, run withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners. An earlier run linked here didn't run this set, so it's replaced.agc_shader_replay --preparewithANYPS5_NO_SHADER_CACHE=1on the request the driver dumped, RTX 4090, Windows 11; replay only, no title run. Onmain513ca7e with fix(shader): link table callees that together exceed s_call_b64 range #9068, fix(shader): link a table call whose V# is a slice of an s_load_dwordx8 or s_load_dwordx16 #8070 and fix(shader): find strongly connected components without recursion #9701 to refactor(shader): walk each construct when checking the structured constructs #9703, it stops on Shader recompiler: non-invariant descriptor Phi causes GetImageResource validation abort #7459'sGetImageResource dword 0 is not a valid runtime value: a T# behind areadfirstlane-keyed record in a waterfall loop whose pointer Phis carryBallotAND-NOT words. With this PR (9162d9d) it gets past that and stops onsampler resource limit exceeded, which feat(shader): raise the sampler and sampled-pair limits past the 32-bit sampler masks #10000 raises.agc_shader_replay --prepareon the title's dumped request withANYPS5_NO_SHADER_CACHE=1, Windows 10 22H2, WinLibs GCC, Release; replay only, no title or GPU run. The base ismain0db47b2 with fix(shader): link table callees that together exceed s_call_b64 range #9068, fix(shader): link a table call whose V# is a slice of an s_load_dwordx8 or s_load_dwordx16 #8070 and refactor(shader): walk each construct when checking the structured constructs #9703.GetImageResource dword 0 is not a valid runtime valueatLoadAddressU32@pc=0x000517dc, and so does the base with fix(shader): plan an image table for a T# read at a first-lane offset #10228.sampler resource limit exceeded.LoadAddressU32@pc=0x0002ef78. Its pointer Phi has, besides the record reads with lane-mask arms, an arm read at a fixed offset of a buffer whose V# is loaded from memory. fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer #9457 with feat(shader): raise the sampler and sampled-pair limits past the 32-bit sampler masks #10000 stops at the same 0x2ef78.main379b1dc), on top of the new commit 9e50a74 (6. above). The conflict inResourceTracker.cppis between this PR's paired walk and fix(shader): resolve table column pointers through Phi nodes #7880's unwrap of the pointer's words: pointer-keyed columns keep the paired walk, the others take fix(shader): resolve table column pointers through Phi nodes #7880'sUnwrapTableRead.FormatVersionstays at feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's 47.agc_shader_memoryandagc_shader_bindlesson both runners withGetImageResource dword 0 is not a valid runtime value(run). And 9e50a74 refuses a pointer-keyed Phi edge whose two words are both immediates (a constant pointer no record holds, such as a null pointer), where the walk planned it before.agc_driver_pointer_phi_high_tablefails 3 of 3 on Linux with "a record pointer arm whose two words are both immediates was planned". With the commit, ×10: Linux 24 run, 24 pass, 0 skip, 0 fail; Windows 26 run, 7 pass, 19 skip, 0 fail.agc_shader_bindless,agc_shader_memoryand the^agc_driver_pointer_,^agc_driver_nested_,^agc_driver_image_tableand^agc_shader_disk_cachetests. Linux: 24 run, 24 pass, 0 skip, 0 fail. Windows: 26 run, 7 pass, 19 skip (Vulkan device tests; the runner has none), 0 fail.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners. The full^agcset at fix(shader): read a chased pointer's high word at its own offset #9749's and fix(shader): plan several T#s read through one pointer-loaded V#, keeping the V# real for their other uses #9790's heads, which carry this merge, shows onlymain's three known failures (see those PRs).main5d3ab77 with fix(shader): structurize a 4,750-block graph before Unreal's render thread watchdog fires #9702 merged in, so compute shader 0x200c520000 gets past structurization.GetImageResource dword 0 is not a valid runtime value(LoadAddressU32@pc=0x00051884andpc=0x0005192c).storing storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented, the check fix(agc): save the guest bytes of results that become pending over a surface that is no longer fully write-watched #7048 addresses.sampler resource limit exceeded, the replays' next stop, doesn't appear in these runs.mainc9b2660). Clean:FormatVersionfollows feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's 50, and this PR's own diff is unchanged. On GitHub's runners, 10 runs (run) of the pointer, nested, image-table and disk-cache sets (agc_shader_bindless,agc_shader_memory,^agc_driver_pointer_,^agc_driver_nested_,^agc_driver_image_table,^agc_shader_disk_cache): Linux: 24 run, 24 pass, 0 skip, 0 fail. Windows: 26 run, 7 pass, 19 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both, run withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.mainc8d34aa). Clean:FormatVersionfollows feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's 50, and this PR's own diff is unchanged: the merge brings in exactly what feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's merge did (249 files). On GitHub's runners, 10 runs (run) of the pointer, nested, image-table and disk-cache sets (agc_shader_bindless,agc_shader_memory,^agc_driver_pointer_,^agc_driver_nested_,^agc_driver_image_table,^agc_shader_disk_cache): Linux: 24 run, 24 pass, 0 skip, 0 fail. Windows: 26 run, 7 pass, 19 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both (143 and 206 tests on Linux, 170 and 222 on Windows), run withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.agc_shader_replay --preparewithANYPS5_NO_SHADER_CACHE=1on a freshshader_200c520000.prepare.reqfrom a run onmain74acfad.main74acfad with this PR (e2af03b): a title run on an RTX 3080 (617.42) stops after about 152 s onsampler resource limit exceededin compute shader 0x200c520000, and the replay stops the same way. feat(shader): raise the sampler and sampled-pair limits past the 32-bit sampler masks #10000 raises that limit.LoadAddressU32@pc=0x0002ef78(GetImageResource dword 0 is not a valid runtime value). The IR shows the T# pointer is a Phi of the record pointer and a pointer read at offset 0 through a V# loaded from the record at +0x30, with that V#'s words edited before use (& 0xffffon the base's high word,<< 4on the record count,| 0x30000000on word 3). No PR in this stack plans that arm; it's the title's next stop.main0cd07dc (run).main0d62324, which moves feat(shader): resolve nested image tables through runtime pointers #7223 toFormatVersion49) and feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's test-only commit. Clean, and this PR's own diff is unchanged.not a valid runtime value, two of the assertions @oneandonlydean listed on fix(shader): index a pointer-loaded V#'s T# array by a word read from the same buffer #9969, under the rule that tests don't assert that a shape the code doesn't support yet throws: a high-word arm read from a buffer whose V# is loaded through a pointer, and a record-pointer arm whose two words are both immediates. The first was the whole ofagc_driver_pointer_phi_high_second_table's mode, so that test and its registration go; the lane-mask, high-word and second-lane cases stay.main0cd07dc. The one conflict wasResourceTracker.cpp's include list, where mrfelek's fix(shader): plan an image table for a T# read at a first-lane offset #10228 adds<numeric>beside this PR's<set>; both stay. This PR's changed lines are the same.guest_raise_exceptionfailed after "address waking round 47: the handler did not run within 5 s", asmain9fc181d does in the same verify setup (run); that is libkernel (Windows): guest_raise_exception slowed about 3x and sometimes aborts at "address waking" since 540364a24 (#10666) #11813, and this PR doesn't touch libkernel.exec_arguments,guest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_webfail at their setup in the verify's Windows build (FileNotFoundErrorstarting the title, or copying the libraries they load), and pass inmain's own Windows job at 1829def (job). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.exec_arguments,guest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_webfail at their setup in the verify's Windows build (FileNotFoundErrorstarting the title, or copying the libraries they load), and pass inmain's own Windows job at 1829def (job). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main38ccd50 and with it fix(agc): sample cube descriptors with fewer than six slices as six faces #11507'sFormatVersion49 (run). Clean:FormatVersionstays 51 (see What), and this PR's diff over feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395 is the same. The pointer-Phi, V#-select, SGPR-fill and nested-sampler tests with the disk-cache, bindless and shader-memory tests and fix(agc): sample cube descriptors with fewer than six slices as six faces #11507'sagc_driver_image_sample_short_cuberan 10 times with no failure. Linux: 12 run, 12 pass, 0 skip, 0 fail. Windows: 14 run, 6 pass, 8 skip (the Vulkan device tests), 0 fail. Suites: libc and libkernel pass on Linux (166 and 265). On Windows libc passes (194), and libkernel passes 284 of 287:exec_arguments,guest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_webfail at their setup in the verify's Windows build (FileNotFoundErrorstarting the title, or copying the libraries they load), withmain's code too, and pass inmain's own Windows job at 1829def (job). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.agc_driver_nested_image_table's two checks that a valid shader is refused (a V# with another buffer consumer and a T# with another consumer), and feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's merge of feat(shader): resolve nested image tables through runtime pointers #7223's 0dbf547 (yabanana's merge ofmainf7e84c4, which moves feat(shader): resolve nested image tables through runtime pointers #7223 toFormatVersion50). Clean.agc_shader_bindlessandagc_shader_memoryran 10 times with no failure. Linux: 24 run, 24 pass, 0 skip, 0 fail. Windows: 26 run, 8 pass, 18 skip (the Vulkan device tests; the Windows runner has no Vulkan device), 0 fail. The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. They ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main0836dfd. Compute shader 0x2010fa0000 gets past its stop, andagc_shader_replay --prepareon its dumped request prepares it (481,271 SPIR-V words). Onmain, and onmainwith feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395 alone, it fails at pc 0x3300 withGetImageResource dword 0 is not a valid runtime value. The title then stops at compute shader 0x200c340000 with the same message, a pointer chase that fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer #9633 and fix(shader): read a chased pointer's high word at its own offset #9749, stacked on this PR, plan when the chase isn't a loop (from reading the code, not run).main0836dfd (1f158eb) (run).CMakeLists.txtconflicted from build(agc): register each AGC test executable in its own CMake fragment #12862's split.tools/agc_test_split.py resolvemoves this PR's registrations intotests/cmake/agc_driver_image_table_tests.cmake: +7 −2 against feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's merge, the 5 newadd_testlines and feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's twoset_tests_propertieslines extended with this PR's names.ShaderDiskCache::FormatVersionconflicted too, since feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's merge brings 63. This PR's own format moves from 53 to 66, the lowest number above 63 that no open PR uses, so its recompiler change keeps a disk cache format of its own.main, left as he made it, so the stack's numbers are uneven until one of them merges again.-DBUILD_TESTING=ON,ctest -Ngives 3089 tests:main's 3075, feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's 9 and this PR's 5, each listed once.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.VK_LAYER_KHRONOS_validationon GitHub's Linux runner (run),main0836dfd against this merge, for the same tests. The loader inserted the layer 1 time onmainand 13 with this merge. The only VUID in either arm isVUID-VkDeviceCreateInfo-pNext-pNext, so this merge adds none.agc_driver_image_tablefails in that mode in both arms, because the mode treats thatmainmessage as a failure.agc_shader_nested_snapshot_retry, which this PR now carries through feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's merge. As on feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395 and fix(agc): span table-reading wave64 programs by default on Intel drivers that share handles across fused threads #10846, it exits with 0xc0000135 before it starts, because its registration doesn't put libc's directory on PATH on Windows. df80d9b, below, fixes it.main, and 2 are unstable onmain.VK_LAYER_KHRONOS_validation, there are no new validation IDs againstmain, over 939 tests on the GPU.agc_shader_nested_snapshot_retrylibc's directory on PATH on Windows, beside feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's sampler retry, as oneandonlydean asked on fix(agc): span table-reading wave64 programs by default on Intel drivers that share handles across fused threads #10846 (comment). It brings in only that line, so the upstream Windows failure noted above is gone.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.maind262000: 39 tests, 39 passed, 0 skipped, 0 failed, both retry tests included.maine6f5730, driver 595.99.02, Ubuntu 26.04.1, 2,548 of 3,148 tests selected.main, and 3 are unstable onmain.VK_LAYER_KHRONOS_validation, there are no new validation IDs againstmain, over 946 tests on the GPU. 14 tests ran with the layer but aren't inmain's baseline, so they weren't compared. Both nested snapshot retry tests passed on the GPU.main88e804b (run). Clean:FormatVersionstays 66, and this PR's own diff is unchanged; the plan-encoder numbers come from feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's merge (see feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395). The shader-memory, nested, pointer, image-table, disk-cache and bindless tests, with fix(shader): split scalar-address descriptor phis #7694'sagc_shader_descriptor_phis, pass 10 runs in a row. Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 11 pass, 18 skip, 0 fail. Suites: libc and libkernel pass on Linux (210 and 310) and on Windows (237 and 331). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners. TechLevelZero's NVIDIA bot ran this head merged ontomain88e804b on an RTX 2000 Ada (report): 2,563 passed, 7 failed, none new (3 also fail onmain, 4 unstable onmain), 45 skipped, with no new validation IDs (985 tests on the GPU).main4f64f81 (run). Clean:FormatVersionstays 66, and this PR's own diff is unchanged. TheResourceMaterializer.cppresolution, with feat(agc): sample 1D arrays past maxImageArrayLayers as rows of a 2D image #12246's view loop moved back intoSnapshot, comes from feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's merge (see feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395). The shader-memory, nested, pointer, image-table, disk-cache and bindless tests, with fix(shader): split scalar-address descriptor phis #7694'sagc_shader_descriptor_phis, pass 10 runs in a row. Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 11 pass, 18 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (217 and 318) and on Windows (244 and 339). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.maina4eca2a, Mesa 25.2.8, Ubuntu 26.04.1, 2,754 of 3,591 tests selected. 2,687 passed, 13 failed and 54 skipped. None of the failures is new: 12 also fail onmain, and 1 is unstable onmain. One more, atrace_digesttool test, timed out in the parallel run and passed on its retry. WithVK_LAYER_KHRONOS_validation, there are no new validation IDs againstmain, over 992 tests on the GPU. 15 tests, among them the stack's nested and pointer tests, ran with the layer but aren't inmain's baseline, so they weren't compared.main: 21 tests (agc_driver_pointer_*,agc_driver_image_table*,agc_shader_memory*,agc_shader_disk_cache*) pass, none skipped. Their negative control, with feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395'sResourceTracker.cppin the same tree: the four new cases (agc_driver_pointer_phi_lane_and_table,_high_table,_high_second_lane_tableand_lane_not_table) fail, and feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's three pass.main92d2fdc (NVIDIA GeForce RTX 4080 SUPER, driver 610.74, Windows, Release), replayed withagc_shader_replay --prepare, no GPU. Each PR's diff overmain, without its tests, was applied alone on 92d2fdc, this PR's at afb123a.GetImageResource dword 0 is not a valid runtime value, a descriptor reached through aReadFirstLane/Ballotwaterfall over constant-buffer values. The replay fails the same way, and so does feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's diff.sampler resource limit exceeded(MaxSamplerswas 32; feat(shader): raise the sampler and sampled-pair limits past the 32-bit sampler masks #10000 has since raised it to 64).MaxSamplersat 128, the request stops onGetImageResource dword 0again, so the shader has at least one more chain the stack doesn't resolve.main4f41f4c (×10, complete ×10).ShaderDiskCache.hpp'sFormatVersion, wheremainis now at 52 (feat(shader): raise the sampler and sampled-pair limits past the 32-bit sampler masks #10000) and this PR keeps its 66; anddocs/dev/debt/shader.md, where this PR's pointer lane-mask entry andmain's new sampler-limit entry are adjacent and both stay. This PR's own lines are unchanged apart from theFormatVersionline's old value.agc_driver_image_table,agc_driver_many_direct_samplersand every test matching^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits. Linux: 7 run, 7 pass, 0 skip, 0 fail. Windows: 9 run, 7 pass, 2 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 300 and 322 tests on Linux and 327 and 342 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nestedand^agc_shader_tabletest, so every test in this PR's diff overmainruns. Linux: 22 run, 22 pass, 0 skip, 0 fail. Windows: 24 run, 10 pass, 14 skip (no Vulkan device), 0 fail.windowscheck is red at this head on one test,avplayer_http_patched_modules, atAvPlayerHttpModules.cmake:155, where the owner executableavplayer_http_patched_modules_tests.exewasn't built for the selected test (job). fix(ci): build owners of wrappers around selected guest tests #15375, the fix, has since merged (bfd14d1). This PR changes no avplayer or HTTP file, and the check passed at afb123a.mainc2eafe4 with yabanana's feat(shader): resolve nested image tables through runtime pointers #7223 (×10).ShaderDiskCache.hpp'sFormatVersion, which stays 66 (mainis at 56 since feat(shader): resolve nested image tables through runtime pointers #7223), anddocs/dev/debt/shader.md, where this PR's wording of the pointer-keyed image-table entry stays. This PR's own lines are unchanged apart from theFormatVersionline's old value.agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmain. Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 10 pass, 19 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 301 and 325 tests on Linux and 331 and 343 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main5b1d381, driver 595.99.02, Ubuntu 26.04.1, 2,904 of 3,883 tests selected. 2,849 passed, 6 failed and 49 skipped. None of the failures is new: 3 also fail onmain, and 3 are unstable onmain. WithVK_LAYER_KHRONOS_validation, there are no new validation IDs againstmain, over 985 tests on the GPU.agc_shader_nested_sampler_snapshot_retryran with the layer but isn't inmain's baseline, so it wasn't compared.main8eaf82f (×10).main, JJenkx's docs(debt): record that an unstable runtime resource snapshot ends the title #15305's debt entry, and this PR's own lines are unchanged.agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmain. Linux: 28 run, 28 pass, 0 skip, 0 fail. Windows: 30 run, 10 pass, 20 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 327 and 344 tests on Linux and 358 and 371 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main006d11f (×10).main, frankea's feat(agc): blend into 11_11_10 float color targets in the pixel shader #9020'sFormatVersion57, andFormatVersionstays 66 here. This PR's own lines are unchanged apart from theFormatVersionline's old value.agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmain. Linux: 28 run, 28 pass, 0 skip, 0 fail. Windows: 30 run, 10 pass, 20 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 327 and 344 tests on Linux and 358 and 371 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.maindd7c8de (×10).docs/dev/debt/shader.md, where this PR's wording of the pointer-keyed image-table entry sits next to feat(shader): raise the image limit to 128 and name the counts in its refusals #10489's rewording of the image-table entry (the image limit is now 128). Both are kept.FormatVersionstays 66, and this PR's own lines are unchanged apart from theFormatVersionline's old value.agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmain. Linux: 42 run, 42 pass, 0 skip, 0 fail. Windows: 44 run, 10 pass, 34 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 344 and 346 tests on Linux and 375 and 373 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main017bd95 through feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395 (×10).FormatVersion, where feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395 now takes 79, abovemain's 68 from fix(shader): narrow a goto junction Phi to the arm its branch allows #14636 and above this PR's 66. The merge takes 79, and the format commit moves this PR to 80. This PR's own lines are unchanged apart from theFormatVersionline.agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmain. Linux: 42 run, 42 pass, 0 skip, 0 fail. Windows: 44 run, 10 pass, 34 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 350 and 348 tests on Linux with 0 failed, and 380 and 375 on Windows. On Windows, libkernel'sguest_kernel_resident_fmem_exportandguest_kernel_resident_fmem_export_patchedfail: the same harness fails them onmain7259cce alone (run), andmain's own Windows job passes them, so they come from the verify harness, not this PR. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.agctest: Everyagctest also ran once on fix(shader): read a chased pointer's high word at its own offset #9749's tree, which holds this PR (run): Linux 1,530 run, 1,437 pass, 93 skip, 0 fail; Windows 1,573 run, 467 pass, 1,106 skip (no Vulkan device), 0 fail.maine22c5fb through feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395 (×10).agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmainandmain's newagc_shader_memory_coherent_atomic_loads. Linux: 43 run, 43 pass, 0 skip, 0 fail. Windows: 45 run, 11 pass, 34 skip (no Vulkan device), 0 fail, in both attempts of the Windows job. The libc and libkernel suites run 379 and 372 tests on Linux and 406 and 400 on Windows. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.guest_timed_wait_cpufailed, 1 of the 400 libkernel tests. It logged these three lines and then aborted:guest_timed_wait_cpuand passed it, with the libkernel suite at 400 run, 0 failed. This PR changes no libc or libkernel file, and neither does the rest of the stack. fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer #9457's run of d007ace, which carries 95c2a47, passed the same Windows suite with 400 run, 0 failed (run).mainbd278f3 through feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395 (×10).FormatVersion:main's 69, this PR's 80. feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's merge takes perf(shader): read a pass-through input that the pixel shader reads only at P0 as a flat input #19530's move ofmainfrom 68 to 69, and this PR's own diff over feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395 is unchanged.APS5_SKIP_TIMING_TESTS=1, which relaxes onlyprecise_wait's median bounds on GitHub's hosted runners._putenv_stest fix (#19899) on top, becausemain's Windows test build breaks without it ("'setenv' was not declared" inUploadCacheReadOnlyFlush.cpp, from perf(agc): reuse read-only guest buffer uploads #18037); it isn't on this branch.main328cbf6 through feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395 (×10, with #21255's test change).FormatVersion, where feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395 now takes 93, above this PR's 80. The merge moves this PR to 94. This PR's own lines are unchanged apart from theFormatVersionline.APS5_SKIP_TIMING_TESTS=1, which relaxes onlyprecise_wait's median bounds on GitHub's hosted runners.agc_driver_image_table_packed_guards, fails as onmain: three identical "stage 4 pc 0x68" records, then "unrecoverable packed table format was not poisoned", the same lines as inmain's own Linux job at e249fc4 (job). fernandomcrsilva's open test(agc): keep the packed image table guard programs at different addresses #21255 changes that test. With test(agc): keep the packed image table guard programs at different addresses #21255's test change on top of fix(shader): index a pointer-loaded V#'s T# array by a word read from the same buffer #9969's 20b045a, which holds this PR's b4a5b1a (run),agc_driver_image_table_packed_guardspasses 10 of 10, and so do the same tests on that tree: Linux 57 run, 57 pass, 0 skip, 0 fail; Windows 59 run, 11 pass, 48 skip (no Vulkan device), 0 fail.guest_thermal_sensorsin that run: libkernel'sguest_thermal_sensorsreached its 20 s timeout in the Linux suite. It times out in every run I have on GitHub's Intel Xeon 6975P-C runners,main0694c4c alone included (run), and passes in this PR's own ×10 above and inmain's own job. This PR changes no libkernel file._putenv_stest fix (#19899) on top, becausemain's Windows test build breaks without it ("'setenv' was not declared" inUploadCacheReadOnlyFlush.cpp, from perf(agc): reuse read-only guest buffer uploads #18037); it isn't on this branch.ANYPS5_REQUIRE_VULKAN=1andANYPS5_NO_SHADER_CACHE=1. This head b4a5b1a merged ontomaine4caa07 (their merge ee1e118c33, clean), againstmaine4caa07 alone,ctest -R '^agc_.*(image_table|pointer)|^agc_shader_(disk_cache|memory)'.main: 40 of 41 pass. This PR: 48 of 49 pass, including the eight testsmaindoesn't have (this PR's five and feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395's three). The one failure on both sides isagc_driver_image_table_packed_guards, with the same message as onmain, "unrecoverable packed table format was not poisoned" after the "stage 4 pc 0x68" record. fernandomcrsilva's open test(agc): keep the packed image table guard programs at different addresses #21255 changes that test. NoVUID-line on either side, and every device test selected the RTX 4090.tests/execution/ImageTable.cpp). @frankea's run on Windows 11 with an RTX 4090 (NVIDIA 621.14, MinGW, comment) failedagc_driver_pointer_phi_lane_and_tableandagc_driver_pointer_phi_lane_not_table3 of 3 at b4a5b1a, and on fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer #9457, fix(shader): plan several T#s read through one pointer-loaded V#, keeping the V# real for their other uses #9790 and fix(shader): index a pointer-loaded V#'s T# array by a word read from the same buffer #9969, both withselected the descriptor at 0x0: unmappedwhere they expectedoutside the snapshot.lane_not_table's zero arm, andlane_and_table's lane-mask arm in the waterfall pass over lanes 32-63. fix(tests): link Windows test executables without high-entropy addresses #18253 links Windows test executables without high-entropy addresses, which keeps their stacks near the bottom of the address space. On frankea's machine the selected pointer was 0x0, so the records sat below 4 GiB and their high word was 0, and 0x0 faults as unmapped, as a null pointer does inagc_driver_pointer_phi_sampler_table. GitHub's Windows runner has no Vulkan device, so these tests skip there.selected the descriptor at 0x0: unmapped; otherwise they still have to fault outside the snapshot.^agc_driver_pointer_and^agc_driver_nested_tests pass, none skipped.0x40000000, below 4 GiB. With the old checks,agc_driver_pointer_phi_lane_and_tableand_lane_not_tablefail 3 of 3, each onselected the descriptor at 0x0: unmapped, and the other 10 pass 3 of 3 (job). With the fix, all 12 pass ×10 (job)._putenv_sfix (#19899) merged for the run only: the build passes, the libc and libkernel suites run 421 and 417 tests with 0 failed, and the 12 tests skip (no Vulkan device). The Windows GPU case itself can only be re-run by a tester.maindcf3d15; B is the samemainwith this head, 5eb49d1, merged in locally.mainalone: both runs stop in compute shader 0x200c520000 onGetImageResource dword 0 is not a valid runtime value(LoadAddressU32@pc=0x000518c4).sampler resource limit exceeded, whichResourceTracker.cppgives when a shader needs more thanMaxSamplerssamplers (64 since feat(shader): raise the sampler and sampled-pair limits past the 32-bit sampler masks #10000).main3858655, replayed withagc_shader_replay --prepareandANYPS5_NO_SHADER_CACHE=1, macOS x86_64, Release; replay only, no title or GPU run.mainalone, andmainwith fix(shader): rebuild descriptor dwords deeper than the phi search bound #21745: refused atGetImageResource dword 0.mainwith this PR's 5eb49d1 (a clean merge): past that refusal, and stops onsampler resource limit exceeded.maind89f265 through feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395, without conflicts (×10, with #21255's test change).FormatVersionstays 94, and its own lines are unchanged.agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmain. Linux: 50 run, 49 pass, 0 skip, 1 fail. Windows: 52 run, 11 pass, 41 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 411 tests on Linux and 439 and 432 on Windows, with 0 failed apart fromguest_thermal_sensors(below). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxes onlyprecise_wait's median bounds on GitHub's hosted runners.agc_driver_image_table_packed_guards, also fails onmaind89f265 alone in the same harness on GitHub's runners (run: the^agc_driver_image_tabletests ×10, 29 run, only this one fails).main's own Linux job, on the project's self-hosted runner, passes it at 244b338 (job). fernandomcrsilva's open test(agc): keep the packed image table guard programs at different addresses #21255 changes that test. With test(agc): keep the packed image table guard programs at different addresses #21255's test change on top of fix(shader): index a pointer-loaded V#'s T# array by a word read from the same buffer #9969's 630bbb0, which holds this PR's 606212c (run),agc_driver_image_table_packed_guardspasses 10 of 10, and so do the same tests on that tree: Linux 57 run, 57 pass, 0 skip, 0 fail; Windows 59 run, 11 pass, 48 skip (no Vulkan device), 0 fail.guest_thermal_sensors: libkernel'sguest_thermal_sensorsreached its 20 s timeout in the Linux suite, on one of GitHub's Intel Xeon 6975P-C runners. It times out in every run I have on those runners,main0694c4c alone included (run), and passed in this refresh's runs on AMD EPYC runners. This PR changes no libkernel file._putenv_stest fix (#19899) on top, becausemain's Windows test build breaks without it ("'setenv' was not declared" inUploadCacheReadOnlyFlush.cpp, from perf(agc): reuse read-only guest buffer uploads #18037); it isn't on this branch.BUILD_TESTING=ON, validation layer 1.4.363, withANYPS5_REQUIRE_VULKAN=1andANYPS5_NO_SHADER_CACHE=1,ctest -V -R '^agc_driver_pointer_|^agc_driver_nested_|^agc_shader_nested_|^agc_driver_image_table|^agc_shader_memory|^agc_shader_disk_cache|^agc_shader_sampler_limits', 3 runs per arm. fix(shader): index a pointer-loaded V#'s T# array by a word read from the same buffer #9969's 630bbb0 (with feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395, fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer #8939, fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer #9457 and fix(shader): plan several T#s read through one pointer-loaded V#, keeping the V# real for their other uses #9790; their merge 2c9689c0c3) and fix(shader): read a chased pointer's high word at its own offset #9749's bee5a91 (with feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395, fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer #8939, fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer #9457 and fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer #9633; their merge b726f51423), each merged ontomaine1ab104 (clean), againstmaine1ab104 alone; both carry this PR's head 606212c.main: 39 tests, 38 pass, 1 skip in each run. Each arm: 56 tests, 55 pass, 1 skip in each run; the counts include the tests of each arm's other PRs. The one skip is the same in every arm,main's included:agc_driver_image_table_vouched_lookups(the device reports host-imported pages written after a GPU read). The layer was inserted 32 times onmainand 48 times in each arm, and never reported missing. NoVUID-line in any arm, and every Vulkan test selected the RX 9070 XT.mained1def4 withgit merge --no-ff. No validation layer was installed, so these runs say nothing aboutVUID-errors. This head 606212c: the new tests pass, and of the 1296 tests the change reaches, the only failures are onesmainalso fails on that GPU (AGC (NVIDIA RTX 4070 SUPER, Windows): image_sample_l 1D mip blend and image_sample_d_cl MIN_LOD clamp fail in three agc_driver tests #23232, AGC (NVIDIA RTX 4060, Windows):agc_driver_stencil_plane_memoryandagc_driver_msaa_dcc_unwatchfail #23711, AGC (NVIDIA RTX 4060, Windows):agc_storage_write_back_host_retilefails: watched linear write-backs take the scratch route #23942). Their run of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer #9633's 2f104ac, which carries this head, has the same result (comment).maind50640e through feat(shader): read samplers through nested and pointer-keyed descriptor tables #7395, without conflicts (×10, with #21255's test change).FormatVersionstays 94, and its own lines are unchanged.agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmain. Linux: 50 run, 49 pass, 0 skip, 1 fail. Windows: 52 run, 11 pass, 41 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 417 tests on Linux and 439 and 438 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxes onlyprecise_wait's median bounds on GitHub's hosted runners.agc_driver_image_table_packed_guards, also fails onmaind89f265 alone in the same harness on GitHub's runners (run: the^agc_driver_image_tabletests ×10, 29 run, only this one fails).main's own Linux job, on the project's self-hosted runner, passes it at 244b338 (job). fernandomcrsilva's open test(agc): keep the packed image table guard programs at different addresses #21255 changes that test. With test(agc): keep the packed image table guard programs at different addresses #21255's test change on top of fix(shader): index a pointer-loaded V#'s T# array by a word read from the same buffer #9969's dc97c68, which holds this PR's 2eecdd6 (run),agc_driver_image_table_packed_guardspasses 10 of 10, and so do the same tests on that tree: Linux 57 run, 57 pass, 0 skip, 0 fail; Windows 59 run, 11 pass, 48 skip (no Vulkan device), 0 fail.guest_thread_cpu_clockin the run with test(agc): keep the packed image table guard programs at different addresses #21255's test change: libkernel'sguest_thread_cpu_clockaborted once in that run's Windows suite, on an Intel Xeon 6973P-C runner. ShootanoJumper's test(libkernel): compare Windows thread CPU clocks with the process cycle time #23756 reports this test failing intermittently on Windows onmained1def4 under load and changes it. It merged aftermaind50640e, so these runs don't have it. This PR changes no libkernel file._putenv_stest fix (#19899) on top, becausemain's Windows test build breaks without it ("'setenv' was not declared" inUploadCacheReadOnlyFlush.cpp, from perf(agc): reuse read-only guest buffer uploads #18037); it isn't on this branch.Checklist
main4f64f81) and then withmain4f41f4c; 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)