perf(shader): select the record of a T# whose offset the CPU evaluates #6243
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6243"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-15T06:49:16Z.
What
Since #757, a T# loaded from a buffer heap at a runtime offset is an image table column. Every capture then snapshots the whole heap, up to 65,536 records, even when user data or an SRT read fixes the offset. That covers #5188's case, a T# read from a constant buffer at a user-data offset: #757 made it a one-column table instead of an ordinary image.
In Resident Evil Village (PPSA01556) narrowing never applies to these tables, and the cost is large. With
APS5_PROFILE_DRAW=1at the title:With image tables switched off (
APS5_NO_IMAGE_TABLES=1), the title runs about 16x faster. That's not a fix, though: 26 shaders read a T# chosen per lane and then get a null image.With this change, a column whose T# words and offset are runtime values the SRT walker evaluates is selected:
The column keeps a table's semantics:
A column stays a whole table in two cases:
When the shader also uses such a T# for an operation a table can't express (an image store, an image atomic, or a packed or BY2/BY4 load), the T# is bound directly instead, through #5188's path, for every operation of that shader on it. A T# keyed per lane keeps the table: its image stores are table operations since #6402, and its atomics and packed or BY2/BY4 loads still fault, as on
main.A selected record's descriptor index is uniform for the whole draw or dispatch, so it isn't decorated
NonUniform. A column deselected because its key may be written also drops the key domains narrowed from that key.Samplers need no change: an S# whose words the walker evaluates is already bound directly on
main, so no sampler column has an offset the CPU evaluates. A test pins that. The disk cache format becomes 37, above the 36 that #1193 gavemain. Mergingmaine49ec591dcinto this branch conflicted only on that line, and the merges ofmain8856f180caand4186f06a9ahad no conflicts. The merge ofmain55f82fee83takes #7101's bulk scan of key buffers, and its two skips for an inaccessible key page give this PR'sNarrowSkip::Unmappedreason. The merge ofmainf1af6c5915keeps both sides' tests intests/ShaderMemory.cpp, with #7325'sverifyChainedTableOffsetafter this PR's selected-record tests. The last commit adapts the selection to682b07eb0, which came with4186f06a9a:mainnow poisons an image whose dword 3 wasn't captured, and a record selected past the end of its heap reads nothing there, so it was poisoned instead of selecting a null image. Dwords past the end of the buffer now count as read zeros, which is what a scalar buffer load returns there; every other path keepsmain's rule.The second commit names why narrowing is skipped in the
[image-table]profile line, with selected records counted apart. The third covers the selected records and their fallbacks, and each later commit adds one of the changes above, with its test after it:agc_shader_memoryandagc_shader_bindless: invalid, unmapped, past-the-heap, past-the-cap and carried records, a written key buffer and a per-lane key;agc_driver_image_table: a dispatch samples selected records exactly as direct bindings do, and faults on a store over its record;agc_shader_disk_cache: the round trip.After the merges,
docs(agc)drops the disk cache's format version fromARCHITECTURE.md, which said 36, so the line no longer goes stale or conflicts on each bump. After the merge ofmain55f82fee83,test(agc)expects an image store through a T# keyed per lane to be a supported table operation, as #6402 makes it.Not changed here:
main, and image stores takemain's path since #6402.Related: #757 and #5188 (both merged).
Tested
8c6765be71, which mergesmainf1af6c5915(with #7325), on GitHub's runners (run):^agctests (684, 0 failed). libc'sprecise_waittiming test failed in that run's suite; this PR doesn't touch libc.agc_driver_pm4_replay_toolandagc_shader_replay_tool, which fail the same way on that runner for an unrelated branch (run).9dcf408034, which mergesmain55f82fee83(with #6402 and #7101) and adds thetest(agc)commit:4cb0512329),agc_shader_bindlessfails on Linux and Windows: "selected record direct operations: image_store through a T# keyed per lane left the image table or lost its unsupported mark" (run).^agctests (681, 0 failed), and the libc and libkernel suites pass. On Windows the only failures are the same two replay tools (run).090c0dad15, which mergesmain4186f06a9a:check_skips.py.ctest -R '^agc'runs 601 tests, 1 failed (agc_driver_preparation_scope_settle), 41 skipped (run), the same asmain2e5dd5aa14, ten commits earlier, on that runner (run).agc_shader_bindlessandagc_driver_image_tablefail in every one of 3 runs on Linux, andagc_shader_bindlesson Windows, whose runner has no GPU for the other. With it, both pass 5 runs in a row on both (run).a34ba0c7c7, which mergedmain8856f180ca(pipelined draws on by default):check_skips.py. The workflow carried the runner-image CA-bundle fix (CI only, no source change).ctest -R '^agc'runs 589 tests, 0 failed, 42 skipped (run), the same counts asmain8856f180caon that runner (run).0b099964f0, before that merge, in CI's Linux configuration:^agcruns 589 tests, 0 failed, 42 skipped, asmaine49ec591dcdoes there, and the full suite fails only the five socket tests that machine can't run.43855cb5e8): the full suite, 1,252 of 1,252.The only difference between 8f28ea4acf and
43855cb5e8is a test variable renamed because it clashed with the Windowsfarmacro.libspass;guest_datagram_*andguest_tcp), as onmainthere;^agcruns 576 tests with 0 failures.agc_shader_bindless:NonUniformin a two-wave workgroup;agc_driver_image_table, on the GPU: 64 lanesimage_storethrough a selected record, and the texels read back hold the value.43855cb5e8): without these commitsagc_shader_bindlessfails on Linux and Windows, andagc_driver_image_tableon Linux (the Windows runner has no GPU for it). With them, the 14 related tests pass 5 runs on both, and the libc and libkernel suites pass apart from main's intermittentguest_kqueueon Windows, which fails on both trees.Resident Evil Village (PPSA01556, 01.210.000) at the static main menu, on Windows 11 Home 10.0.26300, RTX 3070 Laptop (driver 617.42), Ryzen 9 5900HS, 15.4 GB RAM:
capture_resourcesself time per draw (queue worker 0x0)maine34c47921plus the title's test commits, with this PR's three commits ported and no extra commit. That tree predatesmain's pointer and two-load table columns, so the port leaves out the offset-carry case and its test, and its disk cache format is 34. Every column that tree can plan behaves as in this PR.APS5_TRACE_SECONDS=1500:180 APS5_TRACE_EVENTS=1048576;APS5_RE8_LAZY_PREPARE=1 APS5_NO_GPL=1, which the test tree needs to run the title on this PC;Driver.Dispatch: 248 and 240 ms;GpuMutex.wait.dispatch: 135 and 127 ms;Vulkan.Dispatch.shader_resources: 90 and 94 ms.aps5-trace-a762c980a2ea-24852.json.gz(before) andaps5-trace-320af7a8feb1-21124.json.gz(after).Before:
After:
On
main, unprofiled. A later pair on Resident Evil Village's test tree ofmain0c4816f611, with the fixes it needs to reach the menu, before and after this PR's head (090c0dad15). Same PC and driver, the same environment in both (APS5_HOST_IMPORT_MIB=6400 APS5_NO_GPL=1 APS5_TRACE_SUMMARY_EVERY=60, and the test tree'sAPS5_LAZY_SHADER_PREPARE=1, which it needs to run the title on this PC), no profiler connected, the game window in the foreground, at the static main menu:Driver.Packetper frametrace_digest of the before trace
seconds 1500:180 from present 875: 15 presents, frame p50 11809.1 / p90 13168.7 / p99 13975.2 / max 13975.2 ms, GPU busy 597.3 ms per present
NVIDIA GeForce RTX 3070 Laptop GPU, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit a762c980a2ea, dropped: no
Slowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 35915.9, Driver.Packet.memory_wait 23629.1, Driver.Packet.draw 11731.4, Driver.Draw 11728.8, Driver.WorkerWait 10567.6, Driver.WorkerWait.dequeue_order 10362.5, Shader.DrawStage 6715.2, Driver.Draw.shader_compile_and_link 5654.3
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
trace_digest of the after trace
seconds 1500:180 from present 1074: 49 presents, frame p50 3661.6 / p90 4171.1 / p99 4280.7 / max 4280.7 ms, GPU busy 414.2 ms per present
NVIDIA GeForce RTX 3070 Laptop GPU, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit 320af7a8feb1, dropped: no
Slowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 10881.8, Driver.Packet.memory_wait 6946.6, Driver.WorkerWait 3796.8, Driver.WorkerWait.dequeue_order 3613.1, Driver.Packet.draw 3399.9, Driver.Draw 3398.5, Shader.DrawStage 1925.3, Shader.DrawStage.capture_resources 1615.1
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
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)Overlap (checked against
mainbc400bede6and the open PRs, 2026-10-16): #6232 also adds aTableColumnfield (pointerHops), so the two conflict inTableColumn::operator==, the plan encoder's size and field-count asserts inShaderDiskCache.cpp, and the test lists. Whichever merges second keeps both fields in the comparison, the encoder and the decoder, updates those asserts and setsFormatVersionabovemain's. #6488 (waterfall loops over per-lane T#s) adds twoTableColumnfields,laneKeyandimplicitDerivatives, and conflicts inTableColumn::operator==and the test list inShaderMemory.cpp. It also sets the field-count assert to 17 andFormatVersionto 37, as this PR does, so git merges those two lines without a conflict; whichever merges second raises them by hand (19 fields with both, and the next format version), and keeps all four fields in the encoder and the decoder. #6440 (reuse an image table column's records while its words are unchanged) adds its memo counters where this PR adds its narrowing and selection counters inResourceMaterializer.cpp, changes the same[image-table]statistics line, and adds its test at the same place inShaderMemory.cpp; keep both sets of counters, print both, and keep both tests. #6032, #6296 and #6858 each addEntryHeaderByteson the line afterFormatVersion; keep both lines. #6674 (uncompressed FMASK images) adds a debt line next to this PR's image-table line indocs/dev/debt/shader.md; keep both.#6402 (Pipodi, merged: stores to images selected through image tables) makes an
image_storethrough a T# keyed per lane a supported table operation. It merged without conflicts here, and thetest(agc)commit after the merge ofmain55f82fee83changes the one expectation it broke: inagc_shader_bindless'sselected record direct operationscase, that store is nowTableOperation::Supported, while atomics, PCK and BY2/BY4 keyed per lane still fault. A store whose record the CPU evaluates stays a direct binding here, and #6402's storage table takes the stores keyed per lane.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T07:33:11Z.
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.
main)core/shader/recompiler/ShaderDiskCache.hppL16core/shader/recompiler/ShaderDiskCache.hppL16core/shader/recompiler/Optimization/src/ResourceMaterializer.cppL322, L350-352docs/dev/debt/shader.mdL36-38core/shader/recompiler/ShaderDiskCache.hppL16core/shader/recompiler/ShaderDiskCache.hppL16Some 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.
core/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.cppdocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppdocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cppdocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cppdocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/ShaderDiskCache.cppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.hppdocs/dev/ARCHITECTURE.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Optimization/src/ResourceTracker.cppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cppdocs/dev/debt/shader.mddocs/dev/debt/shader.mddocs/dev/ARCHITECTURE.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ControlFlowInfo.hppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Optimization/src/ResourceTracker.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppdocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.hppdocs/dev/ARCHITECTURE.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ControlFlowInfo.hppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Optimization/src/ResourceTracker.cppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.hppcore/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cppdocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppdocs/dev/ARCHITECTURE.mdcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppdocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/ShaderDiskCache.cppdocs/dev/ARCHITECTURE.mdcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.hppdocs/dev/ARCHITECTURE.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvDescriptors.cppdocs/dev/ARCHITECTURE.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppdocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ControlFlowInfo.hppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Optimization/src/ResourceTracker.cppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.hppcore/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cppdocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdImported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-16T09:33:55Z.
Small doc mismatch: this PR bumps
FormatVersioninShaderDiskCache.hppto 37, but thedocs/dev/ARCHITECTURE.mdline it edits saysFormatVersion36. Onmainthe same line already lags (33 there vs 36 in the code). Dropping the number, so it reads "The disk cache stores the table...", would keep the line from going stale on every bump. It would also stop the two PRs that touch it from conflicting on that line.Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-16T09:43:17Z.
Thanks, @LeandroLP23. The line now reads "The disk cache stores ...", without the number (
ca174bc7e6here, merged into #6454 too).Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T00:57:20Z.
Thanks for this. Our review of
9dcf40803passed (the bindless, disk cache and image table tests pass with the change merged onto main), so this is close.It now conflicts with main in
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp, after #7325 ("fold chained immediate addends of image-table record offsets") merged. Could you rebase onto current main? The other files merge cleanly.One more thing to know: #6488 also uses cache FormatVersion 37. Whichever of the two merges second will need to move to 38, so we may ask for that bump after the rebase.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T01:07:16Z.
Thanks for this. Our review of
9dcf40803passed (the bindless, disk cache and image table tests pass with the change merged onto main), so this is close.It now conflicts with main in
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp, after #7325 ("fold chained immediate addends of image-table record offsets") merged. Could you rebase onto current main? The other files merge cleanly.One more thing to know: #6488 also uses cache FormatVersion 37. Whichever of the two merges second will need to move to 38, so we may ask for that bump after the rebase.
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T01:25:31Z.
@oneandonlydean
mainis merged in at8c6765be71(mainf1af6c5915), so the conflict with #7325 intests/ShaderMemory.cppis resolved. Both sides' tests stay, with #7325'sverifyChainedTableOffsetafter this PR's selected-record tests, and the other files merged cleanly. I merged rather than rebased, so the head you reviewed,9dcf408034, is the merge's first parent and the change itself is unchanged. On GitHub's runners (run), the bindless, disk cache and image table tests pass 3 runs in a row on Linux, as do the^agctests. On Windows the only failures areagc_driver_pm4_replay_toolandagc_shader_replay_tool, which fail the same way on that runner for an unrelated branch today (run). The run shows as failed because of those two and libc'sprecise_waittiming test on Linux; this PR doesn't touch libc.On the cache format: if #6488 lands first, the next merge of
mainhere moves this PR to 38. #6455, next in your order, merges cleanly with currentmain, with every check passing (two skipped).