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.
… pointer-keyed record pointer A T# read at a pointer that a shader chases conditionally from a pointer-keyed record pointer, loading a V# at a fixed offset of the pointer and reading the next pointer from that buffer, stayed unplanned: the merged pointer's chase arms read another buffer at another offset than the record word, so PointerRecordRead refused them (Ratchet & Clank: Rift Apart stops at compute LoadAddressU32 with this shape). The walk now takes such an arm when its V# is read from a pointer that is the record pointer or another chase arm, records each distinct chase as a hop of the column, and refuses a chase that reaches itself or a depth over 4. The snapshot then also captures every record pointer's chase closure up to that depth as pointer-keyed entries, each with the T# at its own offset, so the GPU's lookup finds the pointer the shader reached.
PointerRecordPairs found an existing chase site by its V# alone. A second chase arm that reads its next pointer through the same V# at other words therefore kept the first arm's PointerChase, and the snapshot never followed the second arm: a T# behind a node whose V# holds two links (words 0 and 1, words 2 and 3), each taken in its own lanes, faulted as outside the snapshot when the second link was taken. Sites are now keyed by the V# and the whole PointerChase, so each word pair of one V# is its own chase in the column and in the snapshot's closure. This follows the chase work for Ratchet & Clank: Rift Apart (PPSA01474); its trace has not shown this shape yet.
A pointer chase arm whose next pointer is rebuilt from two words that are not adjacent stayed unplanned: ChaseHighRead took the high word only at the low word's immediate plus 4, so the walk refused the arm. Ratchet & Clank: Rift Apart (PPSA01474) stops this way at compute LoadAddressU32@pc=0x13bc0 with "GetImageResource dword 0 is not a valid runtime value": after two chase steps through a V# at the pointer plus 0x60, its third step loads a V# at the pointer plus 0x110, reads 16 dwords from 0x40 with one s_buffer_load_dwordx16 and rebuilds the next pointer from dword 5 (0x54) and dword 11 (0x6c). PointerChase now keeps the high word's own immediate, readHighImmediate. The walk takes a high read through the low read's V# (or an equivalent one) at the same buffer offset when its immediate is 4-aligned and differs from the low word's, and the snapshot reads the next pointer's high word at that immediate. The shader disk cache stores the field and refuses a plan whose high immediate is unaligned or equals the low one (format 48). Suggested by Tamalero's trace on boykopovar#9633 (issuecomment-6338256607), which also proposed the readHighImmediate field.
…e-family-6191
…ter-chase-closure
…ter-chase-split-words-on-c2
… base Chase() decoded four words at the chased pointer as a V# and read the next pointer at its base plus the load's offsets, checking only that the address was accessible. When those words are not a buffer descriptor, the base can be unaligned, and the read threw "invalid shader memory read address" for the whole capture. Ratchet & Clank: Rift Apart (PPSA01474) stopped this way after 781 s, on a V# read as 4f81f1f 0 ffffffff 0. Every other runtime-address read in TableSnapshotter treats an unaligned address as unresolved; Chase() now does too, so the step is not captured, and a dispatch that takes it faults as outside the snapshot, like a link to memory the snapshot cannot read.
# 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/libs/prx/libSceAgcDriver/CMakeLists.txt # core/shader/recompiler/ShaderDiskCache.hpp
…at, 55 The format ladder along the stack is boykopovar#9457 53 and this PR 55, so a cache written by boykopovar#9457's recompiler is not read as this one's.
…ds-on-c2 # Conflicts: # core/libs/prx/libSceAgcDriver/CMakeLists.txt
…ords-on-c2 Takes boykopovar#9633's FormatVersion 82, which is above this branch's 72; the next commit gives this branch its own number.
…at, 83 boykopovar#9633 now takes 82, above this PR's 72, so this PR takes 83, 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 to 96, above boykopovar#9457's 95.
…ords-on-c2 Moves this branch's FormatVersion to 97, above boykopovar#9633's 96.
Moves this branch's FormatVersion from 95 to 98, above boykopovar#8939's 97.
Moves this branch's FormatVersion from 96 to 99, above boykopovar#9457's 98.
…ords-on-c2 Moves this branch's FormatVersion from 97 to 100, above boykopovar#9633's 99.
…split-words-on-c2
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
This is stacked on boykopovar#9633.
With boykopovar#9633, Ratchet & Clank: Rift Apart (PPSA01474) got past its 0x10b84 stop. It then stopped at the next T# load, in compute 0x116bb67100 (Tamalero's run):
Ratchet & Clank: Rift Apart (PPSA01474), 11-13: this PR got the title past 0x13bc0 in Tamalero's run of 10-22 (see Tested). On current
mainthe title doesn't stop there. boykopovar#14636 removed the title'spc=0x62d4GetSamplerResourcerefusal: with boykopovar#14636's merge reverted,mainf57c971 aborts on it again (dantdmdarealguy's run). Tamalero's run ofmain4e2acc2 with boykopovar#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 shape: onmainfb542a2, which has boykopovar#14636,agc_driver_pointer_chase_split_tablefails 3 of 3 with boykopovar#9633 merged and passes 3 of 3 with this PR merged (llvmpipe, a cloud Linux machine).Tamalero's trace of the same shader (comment) shows a third chase step:
s_buffer_load_dwordx16from 0x40.boykopovar#9633's chase arm required the high word at the low word's immediate + 4, so the walk refused this step. Its V# offset and its depth (3 of 4) were already covered. boykopovar#9633's 2c1a650 already gives each word pair through a V# its own chase site, so the new high immediate becomes part of that site.
The change:
PointerChasegainsreadHighImmediate, the high word's own immediate. Tamalero's trace suggested the field.The tracker takes the edge's high-word read when it has:
The old rule, low + 4, is one case of this.
The snapshot reads each chased pointer's high word at that immediate.
The shader disk cache encodes the field.
FormatVersiongoes from fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's 96 to 97.mainis at 88 since Pipodi's fix(agc): give storage image table elements UINT views when their kind needs one boykopovar/AnyPS5#18455. Ours take one number each: feat(agc): look up table images at run time through a device image table on the GPU heap (APS5_GPU_PATH) boykopovar/AnyPS5#7642 62 (a draft, held; it takes a free number at its refresh), feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395 93, fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939 94, fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457 95, fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633 96, fix(shader): read a chased pointer's high word at its own offset boykopovar/AnyPS5#9749 97, fix(shader): plan several T#s read through one pointer-loaded V#, keeping the V# real for their other uses boykopovar/AnyPS5#9790 98 and fix(shader): index a pointer-loaded V#'s T# array by a word read from the same buffer boykopovar/AnyPS5#9969 99. The other open PRs changing it hold 89 (feat(shader): flatten oversized 1D image arrays to 2D boykopovar/AnyPS5#14871, fix(shader): preserve runtime-proven formatted buffer read extents boykopovar/AnyPS5#19852, fix(shader): keep the destination of a buffer load through a TYPE 2 or 3 V# boykopovar/AnyPS5#21199 and fix(shader): evaluate float-to-signed conversions in runtime SRT values boykopovar/AnyPS5#21240), 90 (fix(shader): keep faulting invocations in their wave and mask their later writes boykopovar/AnyPS5#6416, and 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, both stacked on fix(shader): index a pointer-loaded V#'s T# array by a word read from the same buffer boykopovar/AnyPS5#9969), 91 (feat(agc): export stencil operation values through an attachment boykopovar/AnyPS5#10351) and 92 (fix(shader): skip a bit-field low word in a pointer-keyed table's Phi boykopovar/AnyPS5#14853), and the rest hold numbers at or belowmain's, from a check of every open PR's head on 11-16. A decoded chase with an unaligned high immediate, or one equal to the low immediate, is refused.Debt: fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's chase line now says each word is read at its own fixed immediate, through the arm's V# at the arm's buffer offset.
The chased V#'s base (52ae654): on a diagnostic build of this PR, Tamalero's run stopped after 781 s on
AGC driver: invalid shader memory read address(comment), on a V# read as4f81f1f 0 ffffffff 0.TableSnapshotter::Chase()checked the four words it reads as a V#, but not the alignment of the address it then reads through that V#, and the driver's shader memory reader throws on an unaligned address.Chase()now treats an unaligned base as unresolved, as the snapshot's other runtime-address reads do. That step isn't captured, so a dispatch that takes it faults as outside the snapshot, like a link to memory the snapshot can't read.Overlap:
git merge-treeconflicts are the same as fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's head's, so it adds none: feat(agc): GPU descriptor heap on VK_EXT_descriptor_heap (APS5_GPU_HEAP) boykopovar/AnyPS5#9508, fix(shader): keep a v_writelane lane known across computed-index window stores boykopovar/AnyPS5#8881, fix(shader): resolve table column pointers through Phi nodes boykopovar/AnyPS5#7880, feat(agc): look up table images at run time through a device image table on the GPU heap (APS5_GPU_PATH) boykopovar/AnyPS5#7642, feat(agc): draw alpha-tested packed-target merges that write depth as a depth pass and an EQUAL merge pass boykopovar/AnyPS5#9335, feat(agc): blend into 11_11_10 float color targets in the pixel shader boykopovar/AnyPS5#9020, fix(agc): round the color compare array layer half to even and compare NOT_EQUAL unordered (supersedes #907) boykopovar/AnyPS5#8625, feat(agc): merge partial writes into 4_4_4_4 UNORM color targets boykopovar/AnyPS5#8564, fix(shader): split descriptor webs whose paths fold or hold invalid arms boykopovar/AnyPS5#8077, fix(shader): defer guarded fragment V# type faults boykopovar/AnyPS5#7689 and fix(shader): bound image-table snapshots by table-key ranges boykopovar/AnyPS5#7684. fix(shader): write a GCN v_cmpx result to its VCC or SDST as well as EXEC boykopovar/AnyPS5#9671 and fix(runtime): isolate host worker MXCSR boykopovar/AnyPS5#7622 merge cleanly.FormatVersionconflict keeps this PR's number, above feat(agc): opt-in bindless image heap for sampled image tables boykopovar/AnyPS5#20519's 89. Merge order: this stack first, as proposed in feat(agc): opt-in bindless image heap for sampled image tables boykopovar/AnyPS5#20519's thread (comment). If feat(agc): opt-in bindless image heap for sampled image tables boykopovar/AnyPS5#20519 lands first, a merge ofmainresolves it here.Tested
Linux, Mesa llvmpipe: the new
agc_driver_pointer_chase_split_tablereproduces Rift Apart's shape in hand-written RDNA:It checks every taken and skipped step, including a node only the third step reaches, then a moved link, then a link outside the snapshot, which faults as outside the snapshot.
Refusal controls, refused on both trees until c4f25ba removed them, since they required valid shapes to be refused:
Red: with fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's tracker and materializer, the test fails with "GetImageResource dword 0 is not a valid runtime value", Rift Apart's text. A scratch build whose closure stops one step short makes the T# fault, so the test does prove the third step.
GitHub's runners (run):
CI's Linux job mirrored on a cloud Linux machine. The failures are the machine's three IPv6 tests, a timing test that passes alone (
agc_driver_sgpr_pattern_fill_keys), and two lavapipe JITIllegalfailures on a new host CPU, which also fail on an unrelated tree.Validation layer, fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633 against this PR (CONTRIBUTING's shader rule), on one GitHub Linux runner (run):
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1andctest -V. The device was llvmpipe (LLVM 20.1.2) on Mesa 25.2.8, Ubuntu 24.04.5.VK_LAYER_KHRONOS_validation5 times on fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's tree and 7 with this PR. Neither log haswas not found but was requested by env var VK_INSTANCE_LAYERS.VUID-VkDeviceCreateInfo-pNext-pNext. This PR adds noVUID-message.check_conventions.py: passes, with no comment lines added.Ratchet & Clank: Rift Apart (PPSA01474), by Tamalero (comment): content 01.005.003, Linux (CachyOS, kernel 7.2.9), GCC 16.2.1, Release, RTX 4090 (NVIDIA 615.78.08), the executable relinked once with this head's relinker, cold shader cache, no input.
LoadAddressU32@pc=0x13bc0, at the same sites as on fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633.ShaderRecompiler::Recompile: sampler resource limit exceeded.agc_shader_replay. The control refuses both at the T# load; with this PR both pass it and stop on the sampler limit,ShaderInfo::MaxSamplers = 32inAddSampler.Rift Apart's later stops, in Tamalero's diagnostic runs of 10-24 and 10-25: after the sampler limit,
invalid shader memory read address, which 52ae654 fixes (comment), and thenruntime image descriptor is invalidat a storage image that is written and never read, with a TYPE 0 T# (comment). That last stop has its own PR, fix(agc): bind a written TYPE 0 or 1 static image slot as a null storage image boykopovar/AnyPS5#10906, which binds such a slot as a null storage image: on gfx1030 a store through those words is dropped (Tamalero's measurement).After merging fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's refreshed head (820dc40; this PR's own diff is unchanged), on GitHub's runners (run):
VK_LAYER_KHRONOS_validation3 times onmain's tree (the three of these tests it has) and 100 times with this PR, and neither log haswas not found. Both logs report onlyVUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds noVUID-message. The device was llvmpipe on Mesa 25.2.8, Ubuntu 24.04.5.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.6db7b36,
mainb7d1d47 merged in (clean; this PR's own diff is unchanged), on GitHub's runners (run):main's tree ran the three of them it has. The loader insertedVK_LAYER_KHRONOS_validation3 times onmainand 100 times with this PR, and neither log haswas not found. Both logs report onlyVUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds noVUID-message.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.b2d4afc,
mainc55d7c8 merged in (clean; this PR's own diff is unchanged), on GitHub's runners (run):main's tree ran the three of them it has. The loader insertedVK_LAYER_KHRONOS_validation3 times onmainand 100 times with this PR, and neither log haswas not found. Both logs report onlyVUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds noVUID-message.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.8abb8a4, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's 6b64604, which merges
main0db47b2. The only conflict wasShaderDiskCache.hpp'sFormatVersionline:mainmoved to 45 (fix(shader): normalize offset perspective barycentrics after interpolation boykopovar/AnyPS5#7831), and this branch keeps its 48. On GitHub's runners (run), the pointer, nested, image-table and disk-cache sets (28 tests) pass 10 runs in a row on Linux. On Windows the set has 30, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 25, 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.a36e95b, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's 5b6c96f (which carries feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395's and fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939's merges of
main379b1dc). It's clean apart fromFormatVersion, which goes to 52: fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633 is at 48 now, and feat(shader): raise the sampler and sampled-pair limits past the 32-bit sampler masks boykopovar/AnyPS5#10000, fix(shader): index a pointer-loaded V#'s T# array by a word read from the same buffer boykopovar/AnyPS5#9969 and feat(shader): raise the image limit to 128 and name the counts in its refusals boykopovar/AnyPS5#10489 take 49 to 51. This PR's own diff is otherwise unchanged.agc_shader_bindless,agc_shader_memoryand the^agc_driver_pointer_,^agc_driver_nested_,^agc_driver_image_tableand^agc_shader_disk_cachetests. Linux: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 skip (Vulkan device tests; the runner has none), 0 fail.^agcset once (run): Linux 985 run, 920 pass, 64 skip, 1 fail; Windows 1004 run, 272 pass, 730 skip, 2 fail. The failures areagc_driver_sgpr_pattern_fill_keyson Linux ("the dispatch completed 17 times without a pending write over the keys") andagc_driver_pipelined_metadata_passand its_draw_pipelinevariant on Windows (vkCreateInstancereturns -9 on the device-less runner).main379b1dc shows the same three with the same messages (run);agc_driver_sgpr_pattern_fill_keysfailed 1 of 4 runs there.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.Ratchet & Clank: Rift Apart (PPSA01474) with feat(shader): raise the sampler and sampled-pair limits past the 32-bit sampler masks boykopovar/AnyPS5#10000's limits, by oneandonlydean (comment), on
test/9749-sampler-masks(b340d22, feat(shader): raise the sampler and sampled-pair limits past the 32-bit sampler masks boykopovar/AnyPS5#10000's sampler limits on this PR's earlier head b2d4afc): one 600 s run from a cold shader cache withAPS5_DUMP_IR=all. Nosampler resource limit exceededline, nowhat()or terminate and no stop line: it ran the whole 600 s. 7840 IR blocks were dumped. The highest shader pc is 0x1f2c8, and 980 block lines are at or past 0x13bc0. This covers that branch, not this PR's current head.7bcb8f4, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's 72f48b7 (which carries feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395's merge of
mainc9b2660). The only conflict wasFormatVersion, which goes to 55. This PR's own diff is otherwise 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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 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.67053a3, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's 839cad8, which carries feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395's merge of feat(shader): resolve nested image tables through runtime pointers boykopovar/AnyPS5#7223's f1cc524 (yabanana's merge of
mainc8d34aa). Clean:FormatVersionstays at 55, and this PR's own diff is unchanged: the merge brings in exactly what fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633'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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 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.52ae654, the chased V#'s base, red/green against 67053a3 on GitHub's runners (run).
agc_driver_pointer_chase_tablegains a case where the V# at a chased pointer that no group's step goes through has an unaligned base, and requires that the snapshot records no range that starts unaligned.agc_shader_bindless,agc_shader_memory,^agc_driver_pointer_,^agc_driver_nested_,^agc_driver_image_table,^agc_shader_disk_cache): Linux: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 skip (no Vulkan device), 0 fail.agc_driver_pointer_chase_tableonce on Linux (llvmpipe) withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1andANYPS5_REQUIRE_VULKAN=1: the layer was inserted once on each tree, neither log haswas not found but was requested, and both report onlyVUID-VkDeviceCreateInfo-pNext-pNext, so the commit adds noVUID-message.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.7d6ab8a: 5e0d923, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's 68d0464, the format commit fc0c03d, and 7d6ab8a, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's merge of
main0cd07dc (run).main0cd07dc. Clean here, and this PR's changed lines are the same.tests/execution,agc_driver_pipelined_metadata_passfails atvkCreateInstance(-9) on GitHub's device-less runner, before this PR's code;mainfails it the same way there (run), and upstream's Windows job builds it as a skipped stub.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.ac64b90, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's b5a199b, which carries feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395's test-only commit ca14648 (the nested-sampler test no longer asserts that an S# with another consumer is refused) (run). Clean, and this PR's changed lines are the same. The chase, split-chase, SGPR-fill, nested-sampler and pipelined metadata tests with the disk-cache, bindless and shader-memory tests. Linux ran them 10 times with no failure: 9 run, 9 pass, 0 skip, 0 fail. Windows: 11 run, 6 pass, 4 skip (the Vulkan device tests), 1 fail: on our verify's Windows build, which compiles
tests/execution,agc_driver_pipelined_metadata_passfails atvkCreateInstance(-9) on GitHub's device-less runner, before this PR's code;mainfails it the same way there (run), and upstream's Windows job builds it as a skipped stub. Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel passes 283 of 286: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.32ba4ec, a merge of 037f579, fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's merge of fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457's 9a44f18, which carries
main38ccd50 and with it fix(agc): sample cube descriptors with fewer than six slices as six faces boykopovar/AnyPS5#11507'sFormatVersion49 (run). Clean:FormatVersionstays 56 (see What), and this PR's diff over fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633 is the same. The chase, split-chase, SGPR-fill, nested-sampler and pipelined metadata tests with the disk-cache, bindless and shader-memory tests and fix(agc): sample cube descriptors with fewer than six slices as six faces boykopovar/AnyPS5#11507'sagc_driver_image_sample_short_cube. Linux ran them 10 times with no failure: 10 run, 10 pass, 0 skip, 0 fail. Windows: 12 run, 6 pass, 5 skip (the Vulkan device tests), 1 fail: on our verify's Windows build, which compilestests/execution,agc_driver_pipelined_metadata_passfails atvkCreateInstance(-9) on GitHub's device-less runner, before this PR's code;mainfails it the same way there (run), and upstream's Windows job builds it as a skipped stub. 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.f469f4d, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's 6c13924, which adds the edited-V# chase (run). Four places conflicted, and the merge keeps both sides in each:
agc_driver_pointer_chase_split_tableand fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633'sagc_driver_pointer_chase_edited_table;PointerChasekeeps this PR'sreadHighImmediateand gains fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633'sedits;ShaderDiskCache.cppwrites and readsreadHighImmediateand then the edits, in the same order, and keeps both validation checks;docs/dev/debt/shader.mdstates both rules, this PR's two words at their own immediates and fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's edited V# words, worded to stay under the checker's 1000 characters.FormatVersionstays 56. The chase, split-chase, edited-chase, chase-words, SGPR-fill, nested-sampler and pipelined metadata tests with the disk-cache, bindless and shader-memory tests and fix(agc): sample cube descriptors with fewer than six slices as six faces boykopovar/AnyPS5#11507'sagc_driver_image_sample_short_cube. Linux ran them 10 times with no failure: 12 run, 12 pass, 0 skip, 0 fail. Windows: 14 run, 6 pass, 7 skip (the Vulkan device tests), 1 fail: on our verify's Windows build, which compilestests/execution,agc_driver_pipelined_metadata_passfails atvkCreateInstance(-9) on GitHub's device-less runner, before this PR's code;mainfails it the same way there (run), and upstream's Windows job builds it as a skipped stub. 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.c4f25ba: 85d0352, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's ee8767f, the format commit f6b5d58, and the test-only commit c4f25ba (run).
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), feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395's merge of feat(shader): resolve nested image tables through runtime pointers boykopovar/AnyPS5#7223's 0dbf547 (yabanana's merge ofmainf7e84c4), the format commits below this PR and fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's test-only commit ee8767f. The one conflict was intests/execution/ImageTable.cpp, in two places next to this PR's lines: the merge takes ee8767f's removal of the looped and five-step chase shaders and of their refusal checks, and keeps this PR's split-word shaders and the speculative keys it adds to the conditional chase test.agc_shader_bindlessandagc_shader_memoryran 10 times with no failure. Linux: 31 run, 31 pass, 0 skip, 0 fail. Windows: 33 run, 8 pass, 25 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.eac5dce and babbb0e, for XairRrR's review, on a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's a727b76 (×10 run, negative control run).
docs/dev/debt/shader.mdto lead with what stays refused, and adds this PR's two refusals: a high word read at the low word's own immediate, and a chased V# whose base leaves either word's address unaligned (52ae654), which ends the chase even inside the snapshot. Whether the console reads the dword-aligned address there instead is not measured. The entry is under the conventions check's 1,000 characters.agc_shader_disk_cache). The chase tests run withANYPS5_NO_SHADER_CACHE=1, so nothing coveredreadHighImmediatein the cache before. As a negative control, a decoder that reads the field into a throwaway makes the new check fail on both runners: "a pointer chase whose high word has its own immediate changed in a disk-cache round trip".APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.NVIDIA RTX 2000 Ada Generation at 99d77ab, from TechLevelZero's NVIDIA bot (report): driver 595.99.02, Ubuntu 26.04.1, this head merged onto
main3741ca9, 2,542 of 3,121 tests selected.main, and 1 is unstable onmain.VK_LAYER_KHRONOS_validation, over 949 tests on the GPU, there are no new validation IDs againstmain. 19 of the stack's nested and pointer table tests ran with the layer but aren't inmain's baseline, so they weren't compared.4699b25: d4ef08d, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's 280d6d6, and the format commit 4699b25 (run). Two conflicts:
FormatVersion, which the format commit moves from 57 to 72, above fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's 70, andagc_driver_image_table_tests.cmake, where this PR's split-chase registration is kept.ShaderDiskCache.cppmerged cleanly with fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's numbers, which this PR doesn't change. This PR's own diff is otherwise unchanged. The image-table, disk-cache, BDA anchor-read, shader-memory, nested and pointer tests, with fix(shader): split scalar-address descriptor phis boykopovar/AnyPS5#7694'sagc_shader_descriptor_phis, pass 10 runs in a row. Linux: 34 run, 34 pass, 0 skip, 0 fail. Windows: 36 run, 10 pass, 26 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,571 passed, 6 failed, none new (3 also fail onmain, 3 unstable onmain), 45 skipped, with no new validation IDs (992 tests on the GPU).8fa3da8, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's b9fab3f, which carries feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395's merge of
main4f64f81 (run). Clean:FormatVersionstays 72, and this PR's own diff is unchanged. TheResourceMaterializer.cppresolution, with feat(agc): sample 1D arrays past maxImageArrayLayers as rows of a 2D image boykopovar/AnyPS5#12246's view loop moved back intoSnapshot, comes from feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395's merge (see feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395). The image-table, disk-cache, BDA anchor-read, shader-memory, nested and pointer tests, with fix(shader): split scalar-address descriptor phis boykopovar/AnyPS5#7694'sagc_shader_descriptor_phis, pass 10 runs in a row. Linux: 34 run, 34 pass, 0 skip, 0 fail. Windows: 36 run, 10 pass, 26 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.agctest, once (run): Linux: 1,261 run, 1,182 pass, 78 skip, 1 fail. Windows: 1,297 run, 390 pass, 907 skip (no Vulkan device), 0 fail. The one failure isagc_driver_pipeline_journal's 120-second timeout, whichmain88e804b's own run of every test hits too (run).13e0df8, a merge of
main4f41f4c (×10, the PR's own tests ×10).ShaderDiskCache.hpp'sFormatVersion, wheremainis now at 52 (feat(shader): raise the sampler and sampled-pair limits past the 32-bit sampler masks boykopovar/AnyPS5#10000) and this PR keeps its 72; anddocs/dev/debt/shader.md, where this PR's entries andmain's new entries 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_cache,^agc_shader_sampler_limits,^agc_shader_nestedor^agc_shader_table. Linux: 11 run, 11 pass, 0 skip, 0 fail. Windows: 13 run, 11 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_and^agc_driver_nested_test, the image-table tests in this PR's diff overmain, which the first run's names left out. Linux: 19 run, 19 pass, 0 skip, 0 fail. Windows: 19 run, 0 pass, 19 skip (no Vulkan device), 0 fail.main4f41f4c builds. Their selected tests ran 2,235 with no new failures (7 known failures also fail onmain), the validation comparison withmainover 789 tests shows no newVUID-, and the focused tests pass 27 of 27. Their negative control, the decoder droppingreadHighImmediate, failsagc_shader_disk_cache.18bc368, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's 6089e58, which carries
mainc2eafe4 with yabanana's feat(shader): resolve nested image tables through runtime pointers boykopovar/AnyPS5#7223 through fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457, fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939 and feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395 (×10).ShaderDiskCache.hpp'sFormatVersion, which stays 72 (mainis at 56 since feat(shader): resolve nested image tables through runtime pointers boykopovar/AnyPS5#7223), anddocs/dev/debt/shader.md, where this PR's wording of the pointer-keyed chase 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: 34 run, 34 pass, 0 skip, 0 fail. Windows: 36 run, 10 pass, 26 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.mainb8efa62, driver 595.99.02, Ubuntu 26.04.1, 2,911 of 3,878 tests selected. 2,855 passed, 6 failed and 50 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 989 tests on the GPU.agc_shader_nested_sampler_snapshot_retryran with the layer but isn't inmain's baseline, so it wasn't compared.da7bcad, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's 527a907, which carries
main8eaf82f through fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457, fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939 and feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395 (×10).main, JJenkx's docs(debt): record that an unstable runtime resource snapshot ends the title boykopovar/AnyPS5#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: 35 run, 35 pass, 0 skip, 0 fail. Windows: 37 run, 10 pass, 27 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.e3c81a7, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's 0fd3c90, which carries
main006d11f through fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457, fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939 and feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395 (×10).main, frankea's feat(agc): blend into 11_11_10 float color targets in the pixel shader boykopovar/AnyPS5#9020'sFormatVersion57, andFormatVersionstays 72 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: 35 run, 35 pass, 0 skip, 0 fail. Windows: 37 run, 10 pass, 27 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.54eab5b, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's f086739, which carries
maindd7c8de through fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457, fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939 and feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395 (×10).docs/dev/debt/shader.md, where this PR's wording of the pointer-keyed chase entry sits next to feat(shader): raise the image limit to 128 and name the counts in its refusals boykopovar/AnyPS5#10489's rewording of the image-table entry (the image limit is now 128). Both are kept.FormatVersionstays 72, 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: 49 run, 49 pass, 0 skip, 0 fail. Windows: 51 run, 10 pass, 41 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.aec64b8: fef555f, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's b55705b, and the format commit aec64b8, which carries
main017bd95 through fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633, fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457, fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939 and feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395 (×10, everyagctest).FormatVersion, where fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633 now takes 82, above this PR's 72. The merge takes 82, and the format commit moves this PR to 83. 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: 49 run, 49 pass, 0 skip, 0 fail. Windows: 51 run, 10 pass, 41 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, once, since fix(shader): narrow a goto junction Phi to the arm its branch allows boykopovar/AnyPS5#14636 is itself a recompiler change: 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.39b162b: ad2a936, a merge of fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457's d007ace, and 39b162b, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's 5641662, both without conflicts, which carry
maine22c5fb through fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633, fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457, fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939 and feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395 (×10). The second merge changes no file: 39b162b has ad2a936's tree, which the ×10 ran.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: 50 run, 50 pass, 0 skip, 0 fail. Windows: 52 run, 11 pass, 41 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 379 and 372 tests on Linux and 406 and 400 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.Validation at 39b162b (the run tested ad2a936, which has the same tree):
maine22c5fb against this head on GitHub's Linux runner (lavapipe, layer 1.3.275), withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1andANYPS5_REQUIRE_VULKAN=1underctest -V, over the focused tests above (run). The loader inserted the layer 27 times onmainand 43 on the head. The only VUID in either log isVUID-VkDeviceCreateInfo-pNext-pNext, which that layer logs atvkCreateDeviceonmaintoo, for a structure newer than its 1.3.275 header (VkStructureType1000574000), so the head adds none. That message fails the same 14 tests in both arms,agc_driver_image_tableand its 13_packedvariants, because the run's failure regex matches anyVUID-; the other tests pass, 19 onmainand 36 on the head, the head's including the fouragc_driver_pointer_chase_*tests, whichmaindoesn't have. The run counts 14 "was not found but was requested" matches per arm, and each is ctest printing that failure regex for one of the 14; no loader line in either log says the layer was missing.VUID-line. Themaine22c5fb arm is his earlier run on the same machine (comment), 32 of 32 in 3 of 3 runs with none. No run printed "was not found but was requested", and the only tests withoutInsert instance layer "VK_LAYER_KHRONOS_validation"are nine CPU-only ones that print no Vulkan output.b0e80e5, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's ae857cc, without conflicts, which carries
mainbd278f3 through fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633, fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457, fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939 and feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395 (×10).FormatVersion:main's 69, this PR's 83. feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395's merge takes perf(shader): read a pass-through input that the pixel shader reads only at P0 as a flat input boykopovar/AnyPS5#19530's move ofmainfrom 68 to 69, and this PR's own diff over fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633 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 boykopovar/AnyPS5#18037); it isn't on this branch.510fd23, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's 99e3511, which carries
main328cbf6 through fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633, fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457, fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939 and feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395 (×10, with #21255's test change).FormatVersion, where fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633 now takes 96, above this PR's 83. The merge moves this PR to 97. 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 boykopovar/AnyPS5#21255 changes that test. With test(agc): keep the packed image table guard programs at different addresses boykopovar/AnyPS5#21255's test change on top of this head (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 boykopovar/AnyPS5#18037); it isn't on this branch.NVIDIA GeForce RTX 4090, by domx4q, with the Khronos validation layer (comment): Arch Linux (kernel 7.3.4), GCC 16.2.1 Release, driver 620.70.06, Vulkan 1.4.357, validation layer 1.4.363.1, with
ANYPS5_REQUIRE_VULKAN=1andANYPS5_NO_SHADER_CACHE=1. This head 510fd23 merged ontomaine4caa07 (their merge 44a4f4bcdb, clean), againstmaine4caa07 alone,ctest -R 'pointer|image_table|nested|agc_shader_disk_cache|agc_shader_memory|bda_anchor'.main: 78 of 78 pass. This PR: 95 of 95 pass, including the 17 testsmaindoesn't have: this PR'sagc_driver_pointer_chase_split_table, fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's three (agc_driver_pointer_chase_table,_words_tableand_edited_table) and the 13 of fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457, fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939 and feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395. No test skips on either side. The layer was inserted 43 times onmainand 59 times with this PR; the tests without an insert are CPU-only. NoVUID-line on either side, and every test that creates a device selected the RTX 4090.fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939's null record pointer fix, by the merge 365f2b5 of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's new head (test only,
tests/execution/ImageTable.cpp), for fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939'sagc_driver_pointer_phi_lane_and_tableandagc_driver_pointer_phi_lane_not_table. frankea's Windows 11 RTX 4090 run (comment) failed them on fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939, fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457, fix(shader): plan several T#s read through one pointer-loaded V#, keeping the V# real for their other uses boykopovar/AnyPS5#9790 and fix(shader): index a pointer-loaded V#'s T# array by a word read from the same buffer boykopovar/AnyPS5#9969, withselected the descriptor at 0x0: unmapped; this PR carries the same tests. The cause, the fix and a verify-only Linux run with the records mapped at 1 GiB, red before the fix and green after, are in fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939's Tested: the records sat below 4 GiB, so an arm whose low word is 0 selected a null pointer. old..new touches onlyImageTable.cpp.^agc_driver_pointer_and^agc_driver_nested_tests pass, none skipped._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 19 tests skip (no Vulkan device). The Windows GPU case itself can only be re-run by a tester.bee5a91, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's 2f104ac, which carries
maind89f265 through fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633, without conflicts (×10, with #21255's test change).FormatVersionstays 97, 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: 57 run, 56 pass, 0 skip, 1 fail. Windows: 59 run, 11 pass, 48 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 boykopovar/AnyPS5#21255 changes that test. With test(agc): keep the packed image table guard programs at different addresses boykopovar/AnyPS5#21255's test change on top of fix(shader): read a chased pointer's high word at its own offset boykopovar/AnyPS5#9749's bee5a91, this PR's own head (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 boykopovar/AnyPS5#18037); it isn't on this branch.AMD Radeon RX 9070 XT (RADV GFX1201), by hugodearaujo, with the Khronos validation layer (comment): Arch Linux (kernel 7.3.4), RADV (Mesa 26.2.7), GCC 16.2.1 Release,
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. This head bee5a91 merged ontomaine1ab104 (their merge b726f51423, clean), againstmaine1ab104 alone.main: 39 tests, 38 pass, 1 skip in each run. This PR: 56 tests, 55 pass, 1 skip in each run; the counts include the tests of feat(shader): read samplers through nested and pointer-keyed descriptor tables boykopovar/AnyPS5#7395, fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer boykopovar/AnyPS5#8939, fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer boykopovar/AnyPS5#9457 and fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633, which this head carries. 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.dd2c6b1, a merge of fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633's f96acd9, which carries
maind50640e through fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer boykopovar/AnyPS5#9633, without conflicts (×10, with #21255's test change).FormatVersionstays 97, 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: 57 run, 56 pass, 0 skip, 1 fail. Windows: 59 run, 11 pass, 48 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 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 boykopovar/AnyPS5#21255 changes that test. With test(agc): keep the packed image table guard programs at different addresses boykopovar/AnyPS5#21255's test change on top of fix(shader): read a chased pointer's high word at its own offset boykopovar/AnyPS5#9749's dd2c6b1, this PR's own head (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. That run's Windows job reached the job time limit while building on an AMD EPYC 7763 runner, before any test ran.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 Intel Xeon Platinum 8573C and 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 boykopovar/AnyPS5#18037); it isn't on this branch.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)main(see What)