feat(agc): implement image tables loaded through 64-bit pointers #758
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/758"
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 Celegans12 on 2026-10-05T21:12:05Z.
What
Stacked on #757; please review the last commit only.
Image and sampler descriptors loaded by
s_loadat runtime offsets through a 64-bit pointer still fail planning. This enumerates offsets from an independently resolvable base, preserving registration-time compilation and keeping invocation data out of shader and pipeline keys.Consecutive descriptor reads must share one heap/address handle and an affine offset. Alignment, signed immediates and bounded keys are preserved; invalid, unmapped or overflowing selected entries fault. Each table records its consumed descriptor spans, read in runs like #757's buffer tables. Overlapping buffer or storage-image writes poison that table, while gaps and unrelated tables remain usable.
Pointer columns share #757's column rules: reads with the same access shape share one column, whose key bound is the widest of their keys and whose stored plan keeps the pointer flag and bound. Records that hold a pointer to the T#, and a T# split over two loads of its record, are not planned here; #4475 (stacked on this) adds both. #5466 needs a table-aware rule when it meets this, which its author described there. Persisted invocation ranges advance disk format 32 to 33; runtime ABI 12 is unchanged.
Tested
Based on
main066b58fawith #757. Windows 11 (MinGW-w64 GCC 15.2.0) and Linux: configure -DBUILD_TESTING=ON, full build, --target libs, ctest.log_macrosalso fails onmainhere.main84b01f9c: 1171/1173;agc_driver_bc_block_copyandagc_driver_depth_compare_copyalso fail onmainthere.The pointer cases in
agc_driver_image_table(masked keys, null and invalid entries, key cap, unmapped entries, overlapping storage writes, two-table isolation),agc_shader_memoryandagc_shader_disk_cache(a pointer table's plan round trips) pass on both; they fail to build without this commit. Windows ran counted reuse with write watch; WSL skips it and the two subgroup-32 per-wave cases.Not tested: graphics-stage pointer tables, native RADV, console behaviour.
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)Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-06T03:16:21Z.
The Linux failure here (
agc_driver_flat_storetiming out at 120 s) is the llvmpipe slowdown from #757 that I reported in this comment. The fix is in progress on #757, and this branch will be restacked onto it.Imported from boykopovar/AnyPS5. Originally posted by Pacuka on 2026-10-09T15:53:39Z.
Data point from The Smurfs Dreams (PPSA21607, UE): one NGG/mesh shader of its 64-instance layered lighting-volume draws reads a descriptor with
s_loadthrough a user-data 64-bit pointer at the offset(ReadConst(srt, 0) << 4) & 0x1f0. That's a draw-uniform key masked after the shift (32 entries of 16 bytes), not thekey * S (+ c) + Iform, so on #758 it's still reported asscalar address access, offset dynamic (a register offset is not planned by the SRT walker). It then takes the address-based path, and each of those draws mirrors the whole GPU-mapped lease and flushes the pending storage images: about 70-80 ms per draw on an RX 6650 XT (RADV). Would(key << s) & mfit the same column shape (range = the mask's bits)? I can test a build on this title.Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-09T15:56:33Z.
Thanks, that's a useful case. I think it fits. When the mask's low
sbits are clear,(key << s) & mis the same as(key & (m >> s)) << s. So it's thekey * Sform withS = 1 << sand a key that the mask already bounds to(m >> s) + 1entries (32 of 16 bytes here). The walker would have to recognise the shift followed by the and, and accept only a mask that is one contiguous run starting at bits. Anything else should keep today's refusal.I'd rather not widen #758 while it's under review, so I'll put this up as a small follow-up on top of it and ping you when it's ready. A run on The Smurfs Dreams would be great.
Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-10T18:57:16Z.
Independent focused validation of head
c38d9ccd9, stacked on #757 head9e5fcf29a, applied onto current main29380369a(local commit538d3db91). Both cherry-picks applied cleanly; no additional compatibility fixes were included.agc_shader_memory,agc_shader_disk_cache,agc_shader_device_profile,agc_driver_image_table,agc_driver_image_table_cache, andagc_driver_image_table_reuse.I also replayed 17 complete local captured requests against main, #757 alone, and this child stack. All still fail at resource analysis with
GetImageResource dword 0 is not a valid runtime value, involvingLoadAddressU32and loop-Phi or ReadLane-derived offsets. These are additional shapes to investigate, not a regression attributed to this PR. The requests remain local.Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-10T19:11:41Z.
Follow-up: I isolated one of the additional rejection shapes in a synthetic test. An eight-dword T# assembled by two four-dword scalar loads is rejected when the second load advances its register offset by 16 bytes while retaining the same metadata offset. The tracker compares metadata offsets separately from the address expression.
A focused fix is prepared in the fork: https://github.com/Mouhand-Kaddo/AnyPS5/tree/prep/agc-split-table-loads. Own commits
5f1f0b929(regression) and29c710648(fix and execution/negative coverage), based on this PR stack rebased to main4a747c487. It compares the combined affine word address, retains rejection of nonconsecutive words, and recognizes equivalent independently created heap handles.The regression alone failed on both Windows and Arch WSL2. With the fix, the same six focused tests listed above passed on Windows/RX 6900 XT (6/6, 1.64 s) and Arch/lavapipe (6/6, 1.05 s). The GPU case compares the split-load shader with the single-load shader; the CPU case compares captured entries and consumed ranges. Earlier subgroup/write-watch omissions still apply.
All 17 local captured requests move past resource analysis with this change, but still fail later during runtime-source evaluation. No successful recompilation, rendering or full-suite claim. No upstream PR opened while intake is paused.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T10:30:18Z.
Review: CHANGES_REQUESTED
This is stacked on #757, which still has two open test failures from its latest review (
agc_driver_bindless_imageson RADV,agc_driver_image_table_reuseon an RTX 4090), so this child can't be validated or merged yet.mainin logic files, not just adjacency:ResourceMaterializer.cpp,ResourceTracker.cpp,SpirvImageEmitter.cpp,Recompiler.cpp,ShaderDiskCache.cpp/.hpp,DescriptorBindingBuilder.cpp,ImageInstructions.cpp,ResourcePlan.hpp,Resources.hpp,PipelineSpecialization.hpp,Graphics/src/BdaResources.cpp,Graphics/src/ShaderResources.cpp,tests/Graphics.cpp,tests/ShaderDiskCache.cpp. Please rebase once #757 is sorted out and re-run the focused tests.write-watch (macos-15-intel)failing; please check whether it is caused by the PR.Thanks to @Mouhand-Kaddo and @Tamalero for the independent runs; they'll be useful once the base lands.
Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-11T13:39:23Z.
Child
1ff81c2416is one commit on revised #757e904eb18c7, retaining its allocation/sampler fixes and pointer overlap/isolation tests. Full Windows/Linux checks tested merge7539635ewith main1e8fff68. Final merge preview58739d75differs only by three inherited TechnicalDebt line shortenings; all code and the child topic delta are unchanged.Neither full suite is green:
guest_kernel_sys,windows_exceptions,agc_driver_emulated_color_compareandguest_filesystemall reproduce on exact main1e8(0/4 in 0.59 s).agc_write_tracking. Depth-copy, implicit-LOD plane-address and kernel-stack-protection failures reproduce on exact old main0f863; emulated-color compare reproduces on exact main1e8(0/1). The skip remains rejected.All 16 focused cases pass inside the merged Windows full run without internal omissions, including counted reuse on the RTX 3080 Laptop GPU and pointer self-write/two-table isolation. Earlier exact-child focused 16 and GPL-OFF three, reuse-OFF one and layout/pool-OFF two cases pass on both platforms. WSL omits counted reuse, heap/import watch proofs and two subgroup-32 per-wave cases; the pointer overlap/isolation cases still execute. No old-child full Linux suite is claimed.
Merged default Recorder passes on NVIDIA but omits watched-import refresh, draw reuse, unit shadows and snapshot patching; storage refresh runs unwatched. llvmpipe Recorder's unchanged-depth fast-proof failure on use 2 also reproduces on exact main
1e8; later checks were not reached. No hidden unexpected native faults were found in either completed merged full run. Both merged Windows draw-cache modes pass, but that does not prove the historical intermittent native fault fixed.The Intel Mac timeout was in standalone
write_watch_threads, unchanged by this stack. The restack inherits main's bounded-stress repair5d7fc5a342; no local Mac, RADV or RTX 4090 run is claimed.Imported from boykopovar/AnyPS5. Originally posted by Pipodi on 2026-10-12T09:17:43Z.
Data point from Ghost of Yōtei (PPSA26344): the title can't get past its first large compute dispatch on current
mainwithout this PR.Compute shader
0x800027c200(4,472 code words, wave64, 8×8×1, issued about 30 s after launch) fails resource planning onmain, and the exception aborts the process (SIGABRTfrom a driver worker thread):main436e310dd, Oct 9maind70b89989and Oct 11main0f863c102, all without #757:GetImageResource dword 0 is not a valid runtime value, at aReadConstBufferat pc0xdc0.753c29396) alone, planning gets further and refuses the descriptor loaded through the 64-bit user-data pointer: dword 0 isLoadAddressU32at pc0xe58fromGetAddressResource(GetUserData, GetUserData), at the offset(ReadConstBuffer@0xe0c & mask) << shift. The constant-buffer read's own offset is built from another constant-buffer read, times a loop counter.cad61e9a7), planning succeeds. An offline replay of the captured request then stops only where the capture has no memory (descriptor evaluation), as any draw/dispatch capture does.Tested by replaying the dumped request (
APS5_DUMP_SHADERS=1) withagc_shader_replay. The passing build wasmain6dbc0ea6with #757 + #758 merged on top of the tessellation stack #4082…#4222, which doesn't touch resource planning. Our earlier Yōtei builds carried #757 and #758 as local picks. In those builds this shader compiles (≈795k SPIR-V words), and the game runs past it into the title-scene load and up to the tessellated terrain draw.I can't attach the request because it contains the title's shader code, but I'm happy to run any other checks against it.
(AI-assisted: written with Claude.)
Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-12T09:34:46Z.
Linux test findings for #757 (
753c29396e4d0c790c6faae216f94fcdc5eda5ca) + this PR (cad61e9a744474d98b25ee2f2f35de864f31441d), integrated locally onto mainc36fd0a0eb57c01866befd370c88329ca42df759. Hardware is RX 6900 XT / RADV Mesa 26.2.4. These results are from that current-main integration, not a clean checkout of the PR branch.All 17 captured Demon's Souls shader requests still fail resource analysis with
GetImageResource dword 0 is not a valid runtime value. I minimized the first request (0x2489bea00, 408 code words) and instrumentedTryMakeTableColumn:s_load_dwordx4at guest PC0x288produces metadata offsets0,4,8,12and dynamic offset(key << 5) + 0x6b0.0x290produces metadata offsets0,4,8,12, but its dynamic offset is16 + ((key << 5) + 0x6b0).memory->offsetis0rather than the required16. The later equivalent-dynamic-offset check would also reject this split-load encoding.ResourceTracker.cppandScalarBufferInstructions.cppin this reproduction are byte-identical to this PR head. Planning executes, and the rejection occurs before registration/module materialization. Any normalization needs to preserve U32 offset wrapping, rather than silently converting the second load's wrapped addition into a 64-bit carry.Nine of ten focused table/resource/cache/graphics/optimizer checks pass after supplying writable temporary storage. The remaining
agc_driver_image_tabletest crashes in RADV at the first graphics-table draw. Debugger evidence identifies a separate integration issue: current main's split graphics-pipeline-library path omits set 0 from a fragment library even when that fragment reads the new shared ImageTable in set 0. Preserving both sets in a debugger-only experiment makes the whole runtime test pass; a production fix must also include the shared set in the fragment-library cache key. This GPL interaction is absent from the PR branch's original full-layout path, so I am not attributing it to clean upstream PR execution.No main-menu success is claimed. No validation or fault assertions were disabled. Testing performed with AI assistance.
Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-12T12:20:52Z.
Linux follow-up for the tested head
cad61e9a744474d98b25ee2f2f35de864f31441d. Demon's Souls (PPSA01342) reached the main menu, with New Game and Settings visible in a native emulator frame and interaction confirmed by the user. Selecting New Game then produced a black screen; gameplay is not validated.This was a combined integration stack: public-main snapshot
c36fd0a0eb57c01866befd370c88329ca42df759, ported #757/#758, #4288, #3991, #4402, the descriptor-layout fix now in #4456, and a local split-descriptor-load correction. It is not an isolated success claim for this PR. The final menu run used GDB to investigate an earlierbuffer descriptor uses an unsupported typeabort. That earlier failure remains undiagnosed.The local follow-up recognizes the exact two-four-word image load and preserves each group's U32 offset wrapping during materialization. It does not bypass descriptor-type validation. I am retaining this small dependent patch until the table-support parents land, rather than duplicating them in an own main-target PR.
Reproduction detail: the title run temporarily raised Linux
udmabufsize_limit_mbfrom 64 to 2048 because larger GPU imports failed at the default limit. The user restored 64 afterward and readback confirmed it. Default shader optimization remained enabled. RX 6900 XT/RADV was receiving GPU work; CPU shader compilation was a major startup bottleneck. Game assets were accessed through an enforced read-only view of the Windows gaming drive, without copying the game or changing its inputs. Disposable test caches have now been removed. AI-assisted testing/report.Imported from boykopovar/AnyPS5. Originally posted by Pipodi on 2026-10-12T12:59:21Z.
@Celegans12, a follow-up to the Yōtei data above: two more record layouts that Yōtei uses with these tables are now in #4475, a draft stacked on this PR (only its top two commits are new):
0x8000333c00, in a waterfall loop).s_buffer_load, dwords 4-7 from another at an immediate addend (pixel shader0x8000296000).Each commit has an execution test in
ImageTable.cppthat fails on this PR alone and passes with the commit; the full suite passes (933/933). If you'd rather fold them into #758, take them as they are and I'll close #4475. Otherwise it can wait until this merges.(AI-assisted: written with Claude.)
Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-12T21:23:03Z.
Retest on Linux using updated #4456 head
4f5f6d671cdb0ffd3a9c43eedbdf03e433e80ebeas the integration base. Its six focused PR checks pass three times each; the previous null-shader-module mock failure is reproduced on its parent and fixed on this head.The title support stack remains #757/#758/#4288/#3991/#4402 plus the local grouped split-load correction. Five integration shader/graphics checks pass. Demon's Souls PPSA01342 rendered language/display settings and the online/offline prompt, then aborted with exit 134:
This run did not verify main menu. The earlier c36-based integration did reach it. I have not isolated which rebased-stack change causes the descriptor failure, so this is not a regression attribution to this PR. No memory guard/OOM event stopped the run. One brief debugger snapshot was taken during startup, then detached.
The temporary Linux udmabuf limit was again 2048 MiB for the title run and is now verified back at 64. Assets were read directly through an enforced read-only view of the Windows gaming drive, without copying the game. Original input hashes and timestamps are unchanged. AI-assisted testing/report.
Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-13T02:00:32Z.
Follow-up to my #757 measurement on Ghost of Yotei (PPSA26344), llvmpipe (LLVM 23.1.1) through lavapipe, no AMD hardware.
With #757 alone the run stopped at compute shader
0x800027c200(GetImageResource dword 0 is not a valid runtime value, chain starting atLoadAddressU32on aGetAddressResourcepointer). With this PR's patch added on top of the #757 stack (onmain510a2188c; my local copy is59b01c495, cherry-picked from1ff81c241, the same patch as headcad61e9a7pergit range-diff),0x800027c200appears in 0 log lines instead of 3, the build has no warnings or errors (ctest not run), and the run reaches a new stop:Notes:
core/shader/recompiler/ShaderDiskCache.cpp(thestatic_assertsizes) anddocs/dev/TechnicalDebt.md. Merging the PR headcad61e9a7into that stack conflicted in 21 files, and the PR currently shows as conflicting withmain.ShaderInvocationto 200 andRecompileResultto 408 for this run (local commit, not in the PR); the build fails otherwise.docs/dev/debt/shader.md. I have not yet checked whether this title's shader needs a translation that is still missing.One stop on one device; the title does not reach gameplay.
Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-13T02:27:40Z.
I've restacked this on the reworked #757 and
main37dd4830. The child commit itself is unchanged, apart from two things: pointer tables now read their records in runs like the buffer tables, and the disk format moved to 30. That's because #757 now takes 29 aftermaintook 28. Most of what changed is in #757, and I've summarised it there.@Mouhand-Kaddo, thanks for minimising the Demon's Souls request. Your two-load case is real: the second
s_load_dwordx4at16 + ((key << 5) + 0x6b0)is refused because the column wants a single offset expression. @Pipodi's split-load commit in #4475 handles it. I put its tracker change on this head together with your regression test (5f1f0b929). Your test passes with it and fails without it, with the sameGetImageResource dword 0refusal you saw. I didn't check your point about U32 wrapping in that commit separately. Pipodi, could you have a look whether peeling the immediate keeps the 32-bit wrap of the second load's offset? Your fragment-library finding (the table in set 0 dropped from a split fragment library) should be covered twice now.mainhas your #4456, and #757 puts a fragment stage's table in the fragment set when the sets are split, following @tv7's rebase. Theruntime image descriptor is invalidstop on 0x2489fbb00 might be somethingmainfixed on the 11th:7b9c7ca5and37003b7astop validating images behind a branch the capture doesn't take. Yourc36fd0a0base and #4456's head predate both. I can't run the title, so that's only a guess.@Pipodi, thanks for #4475 and the Yōtei data. I'd like to keep this PR as it is while #757 is still in review, so I haven't folded #4475 in. One heads-up: the rework of the record reader in #757 will conflict with your first commit in
ResourceMaterializer.cpp. Your second commit applies cleanly apart from its test file. I'm glad to rebase #4475 for you once #757 settles, if that helps. For what it's worth, our Yōtei branch has been running your split-load commit since Sunday, and the title gets past the pixel shader at 0x8000296000 with it.Details
log_macrosfails onmaintoo.main0c3dc9ca: 1,006/1,007 pass;agc_driver_depth_compare_copyfails onmaintoo.main495bf91aon Linux: 15/16 pass, and the one failure is the sameagc_driver_depth_compare_copy.ResourceTracker.cpppart of #4475's split-load commit plus5f1f0b929:agc_shader_memoryandagc_shader_bindlesspass. Without the tracker part, both fail onGetImageResource dword 0 is not a valid runtime valueatLoadAddressU32@pc=0x34.Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-13T03:25:00Z.
Update to my measurement above: the PR head is now
6ac700240(my run usedcad61e9a7), and GitHub no longer reports a conflict withmain. So the "currently shows as conflicting" line in my comment is out of date. My numbers describe the old heads (#757 at8945fe208, this PR atcad61e9a7); I have not re-run them on the new heads.Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-13T05:03:03Z.
I rebased
integ/pr758-rebased(#757 and #758) ontomain377959777. It is still your two commits,ea852066fand4f25449cb, with your authorship. The rebase line in each message still names37dd48308, the base the full test run below was done on; the last rebase to377959777had no conflicts, and the graphics and image-table tests pass on it.Conflicts. In each case I kept both sides:
ShaderResources.cpp(#425):noteReusablekeepsmain's early return for textures refreshed per use and your exclusion ofImageTableMapfrom the refresh size limit. Table textures are intexturestoo, and a table that holds a depth surface is never reused.ShaderDiskCache.hpp(#4031):mainis at format 28, so your commits now go to 29 and then 30.DepthSurface.cpp(#2491):main'sdrawnDepthand yoursurfacesSerialare both kept.ShaderValidation.cpp(#4381):main's aliased-viewarraycheck is kept, withImageTableMapadded to its role list.The descriptor-pool leak fixed earlier is still fixed. If
allocateSetassigns the pool only after allocation succeeds,agc_driver_graphicsfails with "a failed main set allocation leaked its descriptor pool". With the fix in place, it passes. The libSceAgcDriver debt entry now says that the halved table capacity applies to every pipeline on a GPL device.Tests (Windows Server 2025, RTX 3060, GCC 15.2; Linux not built): the 13 touched tests pass, including both
emulated_color_comparetests. Inctest -R ^agc_, 453 tests ran: 440 pass and 1 is skipped. The 12 failures are the 9 known ones onmain(flat_loads*,global_loads*,flat_apertures_2/_5,pixel_interlock) and 3 load timeouts that pass when run alone.Demon's Souls (PPSA01342) replay,
agc_shader_replay --prepareover 83 requests:main37dd48308prepares 66 and fails 17 (GetImageResource dword 0 is not a valid runtime value). This branch prepares 83 and fails 0. Not tested with the title.Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-13T11:33:03Z.
@Celegans12 an update to my earlier note that GitHub no longer reported a conflict: it does again, after those PRs merged. On head
6ac700240, GitHub shows #758 as conflicting withmain, and #757 (headf99f5ecdc) as well.I checked with
git merge-treeof6ac700240againstmaine99a1b0aa, which is 284 commits past your base37dd48308. It reports 4 content conflicts, and I did not build the result:Graphics/include/Pipeline.hpp: #3763 (dynamic rendering layers) and #423 (clip and cull distances).Graphics/src/Draw.cpp: #4082 (yours), #3763, #423 and #3471.Graphics/src/ShaderValidation.cpp: #4082 (yours), #3763 and #423.SpirvBackend/src/SpirvImageEmitter.cpp: #1418 (sample the base level through unnormalized samplers).The file lists come from
git log --first-parenton each path since37dd48308; I did not check which hunk of each PR collides.I have not re-run my Ghost of Yotei measurement on the new heads.
Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-13T13:05:54Z.
@Dextroid17 thanks for the conflict list, it saved me the digging. I've rebased both PRs onto
main0f2683cb. #757 is now 8ca1d7acda and this one is 2a41853aea. The child commit itself is unchanged.Three of your four conflicts had the same cause. #757 adds a
runtimeDescriptorArrayflag toValidateShadersandInspect, and #423 and #3763 addedshaderCullDistanceandviewportIndexLayerto the same signatures. I keptmain's parameters and put ours after them. The SPIR-V extension check now accepts both the viewport-layer extension and descriptor indexing under the runtime-array flag. InSpirvImageEmitter.cpp, #1418 added an opcode parameter to theemitSamplelambda, and #757 drops the slot argument fromMakeSampledImage, so I kept both changes. #1418's base-level path is chosen per sampler.ProveUnnormalizedskips table samplers, so their constant stays 0 and they sample as before. An unnormalized S# in a table entry still faults when a lane selects it.While I was at it, #1359 landed and added a fifth conflict in
ShaderResources.cpp. That one needed a real change. #1359 waits for overlapping copied CPU writes before a direct image is accepted, and table entries would have skipped that wait. They now wait the same way, both when a table is resolved and when a cached table is reused. Disk formats stay 29 and 30, sincemainis still on 28, and the runtime ABI stays 12.I haven't re-run Yōtei on these heads yet.
Details
log_macrosfails onmaintoo.main0f2683cb: 1,053/1,055 pass.agc_driver_depth_compare_copyandguest_mathfail onmaintoo. I checkedguest_mathon the samemain.agc_copied_direct_ordering. 19/19 pass on this head too.CompletePendingCpuWriteslines inresolveImageTables.Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-13T21:40:43Z.
Verified #758 with finite stencil-reference replay #5466 locally. The composition needs three adaptations:
Main at
0aa4cb1c2has no ImageTable descriptor role; these adaptations belong to #758's model when it meets #5466.CPU safety/cache tests pass; GPU readbacks pass with GPL and APS5_NO_GPL=1. Both new regressions have verified before/after results. Gameplay verification is separate.
GPUs tested: NVIDIA GeForce RTX 3060 12 GB, driver 591.86 (32.0.15.9186), Vulkan 1.4.325, Windows Server 2025 10.0.26100
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-14T02:24:41Z.
I've restacked this on the reworked #757 and
mainee9037d8. The base commit is byte-identical to #757's head, and the details of what changed there are in my reply on #757. Two things in this commit had to follow it. Pointer columns now use #757's shared columns, so reads with the same access shape share one column whose key bound is the widest of their keys. The front-end plans that #4883 stores on disk also keep each column's pointer flag and key bound, andagc_shader_disk_cachegained a pointer-table fixture so a plan like that round-trips. The disk format moves to 32, since #757 takes 31 after #4883; the runtime ABI stays 12.@fdfawef324, thanks for working out how this composes with #5466. I haven't run #5466 on this head. One thing that did change is the numbering: on top of this head the composition would take format 33 instead of 31.
Details
log_macrosfails onmaintoo. Linux (upstream's job in WSL, lavapipe), merged withmain016db923: 1,093/1,095 pass;agc_driver_bc_block_copyandagc_driver_depth_compare_copyfail onmain016db923too.agc_driver_image_table,_cache,_reuse,agc_driver_bindless_images,agc_driver_runtime_images,agc_shader_bindless,agc_shader_memory,agc_shader_disk_cache,agc_driver_graphics,agc_shader_device_profile: 10/10.keyDomains/unkeyedinstead of the old single key domain; their expectations didn't change.Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-14T05:11:06Z.
I've restacked this on #757's new head 4dcf657a20, which adds size caps to the driver's resource and dispatch caches. This PR's own diff is unchanged, and the new head is 5595a163c0. On this head, which includes #757, Windows NVIDIA passes 1,114/1,115 (
log_macrosalso fails onmain), and upstream's Linux job merged withmain90d0cb48passes 1,110/1,112 (agc_driver_bc_block_copyandagc_driver_depth_compare_copyalso fail onmain).Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-14T10:35:05Z.
I've restacked this on #757's new head e7faf20683 (rebased onto
mainc654b199), so the head is now a5c63d5249 and its own diff only moves the disk format to 33 (also in ARCHITECTURE.md) and the two size asserts. On this head, Windows NVIDIA passes 1,148/1,149 (log_macrosalso fails onmain), and upstream's Linux job merged withmain23e93c05passes 1,123/1,125 (agc_driver_bc_block_copyandagc_driver_depth_compare_copyalso fail onmain).Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-14T15:14:28Z.
I've restacked this on #757's new head
d9e47d1e98(rebased ontomain066b58fa), so the head is now34525fdf7a. Its own diff hasn't changed, and the disk format is still 33. On this head, Windows NVIDIA passes 1,188 of 1,189 tests, and upstream's Linux job merged withmain84b01f9cpasses 1,171 of 1,173; the failures there (log_macros,agc_driver_bc_block_copy,agc_driver_depth_compare_copy) are the same onesmainhas.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T15:34:49Z.
Review: APPROVED
Stacked on #757, reviewed together: see the review there (#758 head
34525fdf7amerged with #757 ontomain84b01f9cd, Linux RADV 572/573, the one failure also fails onmain). The pointer cases inagc_driver_image_table,agc_shader_memoryandagc_shader_disk_cachepass. Approving; it goes in after #757, each with the full Build dispatched on its final head.