perf(agc): bound vertex-indexed guest buffers by the draw's vertex range #9897
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9897"
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 savvaniss on 2026-10-22T20:49:48Z.
What
Get-fix/AnyPS5#8, moved upstream. It needs nothing from the PS4 parts, so it goes straight on
main, as Get-fix suggested.A PS4 vertex shader reads its vertices through a fetch subroutine that it calls with
s_swappc. #9431 links that subroutine into the program (LinkUserDataCallees), so its loads stay ordinary guest-buffer loads indexed byv0, not vertex attributes. Their V#s describe the title's whole vertex ring, so each draw binds the ring whole. When the draw cache reuses a draw at a moved base,PrepareDrawBindingssnapshots the ring whole as well. In Monopoly Plus that is 0x27ffff0 bytes per draw, about 870 times per frame.This PR bounds such buffers by the draw's vertex range, as lifted vertex attributes already are (
VertexBufferReadSize):IDXENload whose index is theVertexIndexbuiltin and whose VGPR offset andSOFFSETare immediates. It records how far pastindex * stridethe loads read, with 16 bytes for a formatted load. The value reaches the driver asDescriptorBinding::bufferVertexExtent(shader disk cache format 51).maxIndex * stride + extent. The same limit applies when its V# moves and it is snapshotted. The size is rounded up to 16 bytes and never exceeds the V#'s own size. A range that then ends less than a stride past the render target's start is cut at the target, asmaindoes for any read-only element (BytesUpToTarget).maxIndexis the one the vertex attributes already use: the highest index plus the base vertex, or the last vertex of an auto draw.DrawRecipeMiss::VertexRange), and the draw then takes the template-hit path.ADD_TIDV#s, and any element with another kind of access.Nothing in it depends on the title. The proof also applies to PS5 vertex shaders that read a buffer by
v5.Since this was written,
maingainedDescriptorBinding::bufferExtent(#6486), the dispatch move proof and the prepare/record split ofGraphics::Draw(#8992). Both extents now travel side by side:addGuestBufferkeeps #6486'sextentand takes the vertex bound as a separate argument;guestBufferBytesstarts from the smaller of the V# size and that bound;MovedDispatchBufferskeeps its sizes, since a dispatch has no vertex range;maxVertexis taken in the prepare step.Merge of 30 Oct.
mainatb7488e1ff5is merged in (de4912048e), with no rebase and no force-push. Six files conflicted. They are resolved as XairRrR's review spells out:MovedReadOnlyBufferstakesmain'sconst ColorTarget* targetand this PR'smaxVertex. It sizes an elementBytesUpToTarget(address, VertexBoundBytes(binding, element, maxVertex), descriptor.Stride(), written ? nullptr : target), andDraw.cpp's template-hit call passes&state.colorandmaxVertex.CheckBufferAliasesgivesBytesUpToTargetthe vertex-bounded size.agc_shader_vertex_index_extentsjoinsmain's longerset_tests_propertieslist.main'sfieldCount<ImageResource>() == 46and this PR'sfieldCount<BufferResource>() == 13.Two more commits follow from that review:
6c9873072fupdates the Linux-only size checks inShaderDiskCache.cpp:sizeof(DescriptorBinding)is 680 andsizeof(BufferResource)is 36. It also addsbufferVertexExtentto the result memo's byte count (descriptorBindingBytes), which sums every vector of a binding.c9092458dbfixes XairRrR's non-blocking finding.addGuestBufferstores a read-only element after the target trim, butBindsVertexRangecompared against the untrimmed size, so every replay of a vertex-indexed element ending within a stride past the target's start was avertex rangemiss.BindsVertexRangenow takes the draw's target and applies the same trim. A recipe built at another target misses and takes the template-hit path.Cache format.
FormatVersionis 51,main's 50 plus one at merge time.maintook 48, 49 and 50 for other layouts while this PR was open, so this PR's earlier 48 is gone. As MarcZX10 asked in https://github.com/boykopovar/AnyPS5/pull/9897#issuecomment-6357420210, the number has to stay unique to one layout. If another schema change lands onmainfirst, this branch mergesmainagain and takes the next free number.Tested
Windows 11 Pro 26300, WinLibs GCC 15.2.0, Release, AMD Radeon RX 9070 XT (driver 32.0.31041.1004, AMD proprietary 26.8.1 LLPC),
ANYPS5_GPU=AMD. Retested on 30 Oct after the merge:mainatb7488e1ff5, and this branch atc9092458db, which is thatmainwith this change.Head
04db012394(30 Oct, test-only, no merge): TechLevelZero's NVIDIA run showedagc_driver_recorded_kept_bytesfailing, and it fails the same way on the RX 9070 XT atc9092458db, which the earlier set above did not include: this PR's bound cut the test's three-vertex draw to 48 bytes of its 65536-byte V#. The test's draw now reads every vertex the V# declares. Rerun on the RX 9070 XT with validation:agc_driver_recorded_kept_bytes,agc_driver_vertex_indexed_ring,agc_driver_vertex_range_bindingsandagc_shader_vertex_index_extents, 4 of 4, noVUID-line.agc_driver_recorded_kept_bytesstill reportsdraw snapshots not testedon this GPU, also with the bound switched off. The rest of the set above and NVIDIA were not rerun at this head.agc_shader_vertex_index_extents(new) compiles RDNA vertex shaders that read by the vertex index (v5) and checks the extent reported for each:buffer_load_format_xyzwby the vertex index: 16;buffer_load_dwordx2at offset 8 withSOFFSET4: 20;agc_driver_vertex_range_bindings(new, mock device) checks the bound size and that each unproven case keeps the whole V#. It moves the V# throughMovedReadOnlyBuffersandPrepareDrawBindings, and checksBindsVertexRange. With the target:BindsVertexRangeaccepts it there;BindsVertexRangerefuses it without that target or for eight vertices;agc_driver_vertex_indexed_ring(new, Vulkan) reads a 64 KiB ring by the vertex index and checks every value, for auto draws from vertex 0 and 5 and for an indexed draw with base vertex 20. It also draws a V# that runs through a resident color target, with its first three vertices ending at the target's start and 8 bytes past it. It builds the draw, replays its recipe throughDrawWithRecipeand repeats it through the template-hit path.agc_shader_disk_cacheround-tripsDescriptorBinding::bufferVertexExtentandBufferResource::vertexExtent.Each part removed on its own fails a test. Retested one part at a time on
c9092458db, each built and run on the RX 9070 XT with the validation layer:ResourceTracker.cppas onmainagc_shader_vertex_index_extents: "buffer_load_format_xyzw indexed by the vertex index: vertex extent 0, expected 16";agc_driver_vertex_indexed_ring: "auto draw from vertex 5: the ring read by the vertex index has no vertex extent"VertexBoundBytesagc_driver_vertex_range_bindings: "a read-only element indexed by the vertex index was not cut to the draw's last vertex";agc_driver_vertex_indexed_ring: "shader buffer aliases the render target"BindsVertexRangealways trueagc_driver_vertex_range_bindings: "a template bound for another vertex range served a draw of eight vertices"BindsVertexRangewithout the target trimagc_driver_vertex_range_bindings: "a template bound up to the render target was refused for the same vertex range and target";agc_driver_vertex_indexed_ring: "a ring whose first three vertices reach 8 bytes into the target: the draw did not replay its recipe: vertex range"MovedReadOnlyBufferssized byGetSizeagc_driver_vertex_range_bindings: "a vertex-indexed element at the same base and range was listed as moved"MovedReadOnlyBufferswithout the target trimagc_driver_vertex_range_bindings: "a vertex-indexed element bound up to the render target was listed as moved for the same words, range and target"CheckBufferAliasessized byGetSizeagc_driver_vertex_indexed_ring: "shader buffer aliases the render target"CheckBufferAliaseswithout the target trimagc_driver_vertex_indexed_ring: "shader buffer aliases the render target"agc_driver_vertex_range_bindings: "a vertex-indexed element was bound past the draw's vertices";agc_driver_vertex_indexed_ring: "shader buffer aliases the render target"+ extentagc_driver_vertex_indexed_ring: "auto draw from vertex 5: vertex 7 component 0 is 0, expected 18612252";agc_driver_vertex_range_bindings: "a read-only element indexed by the vertex index was not cut to the draw's last vertex"bufferVertexExtentleft out of the disk cache's binding encoder and decoderagc_shader_disk_cache: "result round trip: bindings differ"BufferResource::vertexExtentleft out of the disk cache's info encoder and decoderagc_shader_disk_cache: "entry round trip: shader info differs"With every part back, the four tests pass again. The
descriptorBindingBytesline has no such test: the memo budget tests pass with and without it, since they measure budgets, not one field's bytes.Validation layer, with
ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation:agc_driver,agc_driver_graphics,agc_shader_memory,agc_shader_disk_cacheand the 104 recorder tests onmain, and the same 108 plus the three new tests on this branch.mainpasses 108 of 108 and this branch 111 of 111.agc_shader_result_memo_budget*also passes on this branch.agc_host_import_cut_lifetime, which failed on both sides at the last merge, passes on both now.VUID-line orwas not found but was requested by env var VK_INSTANCE_LAYERS. EveryVulkan device:andSelected GPUline names the RX 9070 XT.main.tools/check_main_sync.pyreports a clean merge withfe4bf3037c. Thatmainis still at format 50 and its 23 newer merges change nothing undercore/shaderorlibSceAgcDriver.Linux. WSL Ubuntu, g++ 15.2.0 with libstdc++, on the Linux filesystem, with sources identical to
c9092458dbapart from line endings. That copy has one local change: SDL's XRandR and audio checks in the topCMakeLists.txtbecame warnings, because the development packages aren't installed there. FFmpeg's headers came throughFFMPEG_PREBUILT_DIR.-j 4:libSceAgcDriver,agc_shader_memory_tests,agc_driver_graphics_tests,agc_shader_disk_cache_testsandagc_driver_vertex_indexed_ring_tests. The__linux__size checks are evaluated. Before6c9873072f, the mergedShaderDiskCache.cppfailed with(680 == 656)and(36 == 32), reproducing XairRrR's report.agc_shader_vertex_index_extents,agc_shader_memory,agc_shader_disk_cache,agc_driver_graphics,agc_driver_vertex_indexed_ringandagc_driver_vertex_range_bindings. All 6 pass.BindsVertexRange's trim removed,agc_driver_vertex_indexed_ringfails on llvmpipe with the same "did not replay its recipe: vertex range" as on the RX 9070 XT, and passes again with it restored.agc_driver, the recorder tests, and any hardware GPU.Performance: Monopoly Plus (CUSA03312), language-select screen. This is an alternated A/B from 26 Oct: base, change, change, base.
9c5c8619f7) on the published stack below. It predates this merge, which reconciled the change withmain's render target trim, and no new capture was taken. The trim returns its input unless a read-only range starts before the target and ends less than a stride past the target's start. On the A/B's base, the same V#s bound whole passed the alias check, so a prefix of one can cross a target's start only if it reaches that V#'s last record, and the cut is then under one stride.APS5_RESIDENT_LINEAR=1,APS5_TRACE_SECONDS=240:15andAPS5_TRACE_SUMMARY_EVERY=15, with no input, and each build had its own warm shader cache (ANYPS5_SHADER_CACHE_DIR).mainwithout #9431 and #9432, so the pair is on #6977'sps4/limbo-gpu, under the exception oneandonlydean gave on #6977 (https://github.com/boykopovar/AnyPS5/pull/6977#issuecomment-6347967400).ps4/limbo-gpuat93eeee0141(#6977's head then), plus the 65 commits the title needs: our PS4 changes, now upstream as #9889 to #9899, a port of #9385, and local stand-ins. Both builds are published so the pair can be reproduced.ad706fa0fd(savvaniss:ps4-stack/9897-change) carries this PR's change as commit9c5c8619f7, as first written. The PR's later commits mergemaininto it.eda8041c07(savvaniss:ps4-stack/9897-base) is the same stack with9c5c8619f7reverted.Driver.Packet.device_lockms/frameeda8041c07ad706fa0fdad706fa0fdeda8041c07Driver.Packet.device_lock, 158 and 174 ms per frame. With the change it is under 7 ms, and the frame p50 falls from 215 to 228 ms to 36.9 ms. GPU busy time per present stays at 14 to 16 ms.trace_dropped). The base traces dropped nothing.aps5-trace-eda8041c07be-41464.json.gz,aps5-trace-ad706fa0fd58-30724.json.gz,aps5-trace-ad706fa0fd58-19928.json.gzandaps5-trace-eda8041c07be-39440.json.gz. They are attached in a comment.Summary lines of run 1. Paths are replaced by
<path>:Base (
eda8041c07):Change (
ad706fa0fd):Summary lines of run 2
Change (
ad706fa0fd):Base (
eda8041c07):tools/trace_digest.pyof the four tracesBase, run 1,
aps5-trace-eda8041c07be-41464:seconds 240:15 from present 1813: 70 presents, frame p50 214.6 / p90 223.9 / p99 240.0 / max 240.0 ms, GPU busy 16.1 ms per present
AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 1920x1080, commit eda8041c07be, dropped: no
Slowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 205.3, Driver.Packet.device_lock 157.4, Driver.Packet.draw 45.8, Driver.Draw 45.3, Driver.Draw.draw_enqueued 25.9, batch 16.1, Driver.Draw.shader_compile_and_link 11.0, Shader.DrawStage 3.2
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
Change, run 1,
aps5-trace-ad706fa0fd58-30724:seconds 240:15 from present 7038: 402 presents, frame p50 36.9 / p90 39.7 / p99 42.0 / max 42.4 ms, GPU busy 13.7 ms per present
AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 1920x1080, commit ad706fa0fd58, dropped: yes
Slowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): batch 13.7, Driver.Packet 7.0, Driver.Packet.draw 5.2, Driver.Draw 5.1, Driver.Draw.shader_compile_and_link 2.8, Driver.Packet.device_lock 1.5, Shader.DrawStage 0.7, Driver.Present 0.4
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
Change, run 2,
aps5-trace-ad706fa0fd58-19928:seconds 240:15 from present 6995: 403 presents, frame p50 36.9 / p90 39.6 / p99 42.1 / max 42.6 ms, GPU busy 14.7 ms per present
AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 1920x1080, commit ad706fa0fd58, dropped: yes
Slowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): batch 14.7, Driver.Packet 7.0, Driver.Packet.draw 5.2, Driver.Draw 5.1, Driver.Draw.shader_compile_and_link 2.8, Driver.Packet.device_lock 1.4, Shader.DrawStage 0.7, Driver.Present 0.4
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
Base, run 2,
aps5-trace-eda8041c07be-39440:seconds 240:15 from present 1738: 65 presents, frame p50 228.1 / p90 250.8 / p99 266.1 / max 266.1 ms, GPU busy 14.6 ms per present
AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 1920x1080, commit eda8041c07be, dropped: no
Slowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 221.9, Driver.Packet.device_lock 173.0, Driver.Packet.draw 46.8, Driver.Draw 46.3, Driver.Draw.draw_enqueued 25.8, batch 14.6, Driver.Draw.shader_compile_and_link 12.1, Shader.DrawStage 3.6
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
trace,trace_droppedandwindow;20 Oct pair (history; not the current format)
These numbers come from
ps4/limbo-gpuat93eeee0141(#6977's head then), with and without the change. They ran on the local stack the title needed to start: Get-fix/AnyPS5#1, #2 and #5, plus local stand-ins forsceGnmDrawInitDefaultHardwareState200andsceGnmUpdate*Shader. Pair: base02fc0a86a4, change9c5c8619f7. The base also carried the closed #8243, which changed nothing there. Base and change alternated on the same machine and scene, the language screen. The base's draws snapshotted the+0x27ffff0ring 400 times in the log's first 400 entries; the change logs none.device_lockms/framecapture_resourcesms/frameBase:
{"commit":"02fc0a86a4fe","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_RESIDENT_LINEAR":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"240:15","APS5_TRACE_SUMMARY_EVERY":"15"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","resolution":"1920x1080","presents":42,"frame_ms":{"p50":339.4,"p90":433.2,"p99":520.4},"gpu_busy_ms_per_present":98.1,"top_phases_ms_per_frame":{"Driver.Packet":357.2,"Driver.Packet.draw":201.7,"Driver.Packet.device_lock":150.6,"Driver.Draw.shader_compile_and_link":148.1,"Shader.DrawStage.capture_resources":117.1}}. The base is dirty because that prx was built with the experiment's extent logging uncommitted.Change:
{"commit":"9c5c8619f7ab","dirty":false,"env":{...same...},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","presents":91,"frame_ms":{"p50":166.6,"p90":168.6,"p99":170.6},"gpu_busy_ms_per_present":97.4,"top_phases_ms_per_frame":{"Driver.Packet":164.7,"Driver.Packet.draw":153.0,"Driver.Draw.shader_compile_and_link":143.7,"Shader.DrawStage.capture_resources":113.6},"trace_dropped":true}. The worker's slice buffer filled after 8.4 s, but its totals are complete (totals_fullfalse).vertex rangerecipe misses. That is not measured, and MarcZX10 doesn't treat it as a blocker.tools/check_conventions.py --base origin/mainpasses onc9092458db, andgit diff --check origin/main...is clean.tools/pr_overlap.py --branchonc9092458dblists the PRs below. None implements the same thing:addGuestBuffercall inbuildPrepare, which this PR gives the vertex bound, themake_shared<ShaderResources>lines inDraw.cpp, and the disk cache's size checks.Draw.cpp's prepare and recipe paths.tests/ShaderMemory.cpp.Merge of
maincc26ab4438, 1 Nov. Head837e2b0fcf. The only conflict waslibSceAgcDriver/CMakeLists.txt:mainmoved the AGC test registrations intotests/cmake, andtools/agc_test_split.py resolvemoved this branch's two tests to theagc_shader_memory_testsandagc_driver_graphics_testsfragments.agc_shader_vertex_index_extents,agc_driver_vertex_range_bindings,agc_driver_recorded_kept_bytes,agc_driver_vertex_indexed_ring,agc_shader_memoryandagc_driver_graphicspass, 3 of 3 on the RX 9070 XT under the validation layer, noVUID-line. Not rerun: the other tests, Linux, games.Merge of
maina4eca2a056, 2 Nov. Head5a7da3c59f. The only conflict was the Linux-only guard block inShaderDiskCache.cpp: main's__cpp_lib_atomic_shared_ptrguard aroundRecompileResultand itsImageResource(sizeof108, 49 fields) are kept with this branch'sDescriptorBinding680 andBufferResource(36, 13 fields); the three sizes were measured with a probe built by MinGW GCC 15.2.FormatVersionis 52 (both sides had 51). Run on the RX 9070 XT (ANYPS5_GPU=AMD,ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation):agc_shader_disk_cacheand its 4 option runs,agc_driver_vertex_indexed_ring,agc_driver_recorded_kept_bytes: 7 of 7 pass, noVUID-line, bothSelected GPUlines name the RX 9070 XT. Not rerun:agc_driver_graphics,agc_shader_memory, Linux (the guards were not compiled there), the Monopoly scene.check_conventions.pypasses.Merge of
main4f41f4c375, 3 Nov. Headc2a1b50412. Conflicts:tests/ShaderMemory.cpp, where this branch'sverifyVertexIndexExtentsand main's newverifyUnsetFormatImageMaterializationand descriptor web tests were added at the same place (all kept, each called as before; checked that no test function is lost or defined twice), and the WindowsPATHlist inagc_shader_memory_tests.cmake(main'sagc_shader_sampler_limitsand this branch'sagc_shader_vertex_index_extentsboth kept). Main movedFormatVersionto 52, the value this branch used, so it is now 53; main changed no Linuxsizeofor field-count guard. Windows, WinLibs GCC, Release, RX 9070 XT, validation layer,ANYPS5_NO_SHADER_CACHE=1:agc_shader_vertex_index_extents,agc_driver_vertex_range_bindings,agc_driver_vertex_indexed_ring,agc_driver_recorded_kept_bytes,agc_shader_disk_cache,agc_shader_memory,agc_shader_sampler_limitsandagc_driver_graphicspass, 3 of 3 runs, noVUID-line, no skip. Not rerun: the negative controls, the paired performance capture, Linux, games.Merge of
main5b1d381d5a, 4 Nov. Head152ad564a0. Conflicts:FormatVersion, which main moved to 56, so it is now 57; the field-count guards, which keep this branch'sBufferResourcecount (13) and main'sImageResourcecount (50, forvolumeGather);prepareDrawandDrawWithRecipeinDraw.cpp, which keep this branch's vertex bound andBindsVertexRangecheck and add main'sNoteDepthSurfaceWritecalls after them; andtests/ShaderMemory.cpp, which keeps this branch'sverifyVertexIndexExtentsand main'sverifyAllocationChurnSnapshot(each defined once, called as before). Linux:ShaderDiskCache.cppcompiles with-fsyntax-onlyon WSL Ubuntu g++ 15.2 (x86-64, libstdc++), so itssizeofguards hold; nothing was linked or run there. Windows, WinLibs GCC, Release, RX 9070 XT, validation layer,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1:agc_driver_vertex_indexed_ring,agc_driver_recorded_kept_bytes, the 5agc_shader_disk_cache*tests, the 37agc_shader_memory_teststests (includingagc_shader_vertex_index_extents) and the 40agc_driver_graphics_teststests (includingagc_driver_vertex_range_bindings) pass, 84 of 84, one run, noVUID-line; bothSelected GPUlines name the RX 9070 XT. Not rerun:agc_driver, the recorder tests, the negative controls, the paired performance capture, Linux tests, games.Merge of
mainb11c7bf84f, 4 Nov. Head9cd9bd5d9f.ShaderResources.hpp,ShaderResources.cppandDraw.cpp, where main added apatchedDataout-parameter toMovedReadOnlyBuffers,DrawUse, and theAPS5_VERIFY_ADDRESS_DRAW_REUSEcheck.MovedReadOnlyBuffersnow takes both this branch'smaxVertexand main'spatchedData.verifyServedSpacebuilds its freshShaderResourceswith the samemaxVertexas the served one.ReleaseSpaceand this branch's vertex bound.FormatVersionstays 57, since main is still at 56, and main changed no Linux size guard.RingRefusalsinagc_driver_address_draw_space_reusefilled 16 bytes at byte 64 of a moved vertex buffer and expected the reuse to be refused._verify.9cd9bd5d9fkeeps the fill at byte 64 and expects a reuse there. It adds a fill over the first vertex, which expects the refusal. That fill writes the vertex's own bytes, so the image doesn't change.MovedReadOnlyBufferssizing the element without the vertex bound, the new reuse check fails ("counted moved GuestBuffers element 1, expected one reuse"), and_transitionsfails as well ("built its resources again").ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1and the validation layer.agc_driver_address_draw_space_reuse*tests.agc_driver_draw_cache_*tests, the 4agc_driver_draw_data_hit_user_words*tests andagc_driver_mesh_draw_relocation.agc_driver_graphics,agc_driver_recorded_kept_bytes,agc_shader_disk_cacheandagc_shader_memory.agc_shader_vertex_index_extents,agc_driver_vertex_range_bindingsandagc_driver_vertex_indexed_ring.mainb11c7bf84f: the same tests without this branch's three pass, 26 of 26 in 1 run.VUID-line orwas not found but was requested, and everySelected GPUline names the RX 9070 XT.agc_driver, the recorder tests, the earlier negative controls, the paired performance capture, Linux and games.check_conventions.pypasses.Merge of
main4180951e90, 5 Nov. Head18dfd99c18.deviceStagingflag to the drawShaderResourcesconstructor, at the same position as this branch'smaxVertex, and passesrecordable && drawStagingEnabled()for new draw builds.snapshots, thendeviceStaging, thenmaxVertex, and sets both. Astd::optionalcan't convert to thebool, so a call left in the old order fails to compile. This branch's four test calls that pass a bound as an integer now passfalsebefore it.resolveDrawResourcespasses main's staging choice and the bound.verifyServedSpaceand the rebuild after a moved or staged hit build without staging, as on main, and with the bound.ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1and the validation layer.agc_adaptive_staging,agc_bda_staging,agc_buffer_pool_small_device_no_staging,agc_driver_overlap_staged_copies,agc_driver_recorded_draw_staging,agc_driver_staged_clear_sampled_read(plain and_draw_pipeline) andagc_read_written_staging.main4180951e90: the same tests without this branch's three pass, 34 of 34 in 1 run.VUID-line orwas not found but was requested, and everySelected GPUline names the RX 9070 XT.agc_driver, the recorder tests, Linux and games.check_conventions.pypasses.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T05:51:40Z.
Review: CHANGES_REQUESTED
The vertex-range proof and the reported focused GPU/regression coverage are detailed. I cannot approve this revision yet for two repository-specific reasons:
The
perfreport still has no usable current-formatmain/change pair. The listed base and change commits belong to an unpublished local PS4 stack; the summary lines predate the current format, and the changed run reportstrace_dropped: true. Please reproduce with the current performance-report format using a reproducible base/change pair and attach both traces withtools/trace_digest.pyoutput, including any dropped-event caveat. If the local stack cannot be published or reproduced, please qualify or remove the numerical performance claim. The PR’s own existing comments explain the required fields and same-machine/same-scene comparison.tools/check_main_sync.py --base upstream/main --head refs/review/9897reports a conflict incore/shader/recompiler/ShaderDiskCache.cpp; the branch is 411 commits behind and shares 10 changed files with currentmain. Please rebase/refresh against currentmain, preserve its intervening changes, and rerun the focused tests. Recheck the cache format version at that point: this PR, #9889, and #7831 currently set v45, while #9852 changes serialized fields without a bump. The schema-changing revisions need coordinated ordering and unique version increments.Local checks on the exact head
d66bdd579741d174171c27174d674c673c16e68a:tools/check_conventions.py --base upstream/mainpassed;git diff --check upstream/main...refs/review/9897passed. I did not run the GPU tests here; the reported Windows RX 9070 XT validation-layer results are author-provided evidence, not locally reproduced.AI-assisted review.
Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T03:23:27Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The vertex-range bound works as described on the PR head, and its tests catch a broken tracker. But the head does not compile on Linux/GCC, it conflicts with current
mainin six files, and its disk-cache format number 48 is already taken onmain.What I ran
7ecf14ef124094e993240cb2fa04ae26ea4c34cfmain:3a2b91981651569163768854a1fcdc7193b6667bResults
maingit diff --checktools/check_conventions.py --base origin/mainShaderDiskCache.cpp:91and:97static assertsagc_shader_vertex_index_extents,agc_driver_vertex_range_bindings,agc_driver_vertex_indexed_ring(new)agc_shader_memory,agc_shader_disk_cache,agc_driver_graphicsVUID-lines in the validation-layer logwas not found but was requested by env var VK_INSTANCE_LAYERSVK_LAYER_KHRONOS_validation; GPU was the RTX 4070 Ti SUPERMerge conflicts with main
3a2b919816The main hunks:
ShaderDiskCache.hpp:mainhasFormatVersion = 49, the PR has48.ShaderDiskCache.cpp:mainhasfieldCount<ImageResource>() == 45, the PR has43.ShaderResources.hpp/.cppandDraw.cpp:main(f65fda5c3d) changedMovedReadOnlyBuffersto takeconst ColorTarget* targetand addedBytesUpToTarget. The PR changes the same signature to takemaxVertexand replaces the samedescriptor.GetSize()line withVertexBoundBytes(...).Compile error on the PR head (Linux, libstdc++)
Focused tests (with the two constants patched locally)
Negative control
The new tests call new APIs (
VertexBoundBytes,bufferVertexExtent), so they cannot be built against fully reverted production files. Instead I reverted onlycore/shader/recompiler/Optimization/src/ResourceTracker.cppto the merge base366dd4e6b7and rebuilt. Both tests failed, with the messages given in the description:I did not repeat the other single-part removals from the description.
Findings
Blocking
The head does not compile on Linux x86-64 with libstdc++.
core/shader/recompiler/ShaderDiskCache.cpp:91and:97keepsizeof(DescriptorBinding) == 656andsizeof(BufferResource) == 32. The PR addsbufferVertexExtentandvertexExtent, which make them 680 and 36. These asserts sit under#if defined(__linux__) && defined(__x86_64__) && defined(__GLIBCXX__), so the Windows/WinLibs build in the description never evaluates them. This confirms babyhuey's report, and it fails on the PR head on its own, not only after a merge. Fix: update both constants. The encoder and decoder already handle the new fields.Conflicts with current
mainin the six files listed above. Resolving them takes more than picking a side:main'sMovedReadOnlyBuffers(..., const ColorTarget* target)and the PR'sMovedReadOnlyBuffers(..., maxVertex)need to become one function that takes both. Its size should beBytesUpToTarget(address, VertexBoundBytes(binding, element, maxVertex), descriptor.Stride(), written ? nullptr : target).Draw.cpp's template-hit call then passes&state.colorandmaxVertex.CheckBufferAliasesonmainnow callsBytesUpToTarget. It should take the vertex-bounded size as its input.CMakeLists.txt: addagc_shader_vertex_index_extentstomain's longerset_tests_propertieslist (it now includes theagc_shader_result_memo_budget*tests).ShaderDiskCache.cpp: keepmain'sfieldCount<ImageResource>() == 45and the PR'sfieldCount<BufferResource>() == 13.Disk-cache format 48 is already used on
mainfor another layout.core/shader/recompiler/ShaderDiskCache.hpp:16setsFormatVersion = 48.maintook 48 in787b6a6720(cube descriptors, 2026-10-26) and is now at 49 (b9f4f65904). Entries written by amainbuild between those two commits would have format 48 but a different layout from this branch's. The description already says the number moves whenmaintakes it. It needs to be 50, or whatever is next free when this merges.Non-blocking
BindsVertexRangecan miss a recipe that should hit. Atcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp:5618, the checkitem.size != guestBufferBytes(words, VertexBoundBytes(...))compares against the untrimmed size. ButaddGuestBuffer(ShaderResources.cpp:4390) storesitem.sizeafter trimming a read-only element at the render target. Take a vertex-indexed element whose bounded range still ends less than one stride pasttarget.address: every recipe replay for it is aVertexRangemiss, even at the same vertex range. This costs performance only, because the miss falls back to the template-hit path. When resolving finding 2, apply the sameBytesUpToTarget(..., target)here, so the comparison matches what the build stored.I am not repeating the performance-evidence discussion. MarcZX10 and oneandonlydean are handling it, and the PS5 pair with the
vertex rangemiss count is still listed as open.Not verified
mainfor comparison. The patched PR head logged noVUID-lines for the six tests, so these tests cannot show the change adding validation errors overmain. The three new tests do not exist onmain.ResourceTracker.cppone.To get this to a good state
mainand resolve the six conflicts. ComposeBytesUpToTargetwith the vertex bound inMovedReadOnlyBuffersandCheckBufferAliases, and ideally inBindsVertexRangeas well.sizeof(DescriptorBinding)andsizeof(BufferResource)inShaderDiskCache.cpp. Build once on Linux/GCC (or theanyps5-buildCI image), since the Windows build never evaluates these asserts.FormatVersionto the next unused number aftermain's 49.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:56:32Z.
Review: CHANGES_REQUESTED
Re-check — changes requested
Thanks for replacing the earlier local-stack numbers with a reproducible, current-format A/B: the same title/scene/machine, published base and change commits, four trace attachments, summary lines, and digest output are now present. The report also clearly discloses that both change traces dropped events and that this is a PS4 title running on a documented stack exception. I consider the earlier performance-form finding addressed; I am not treating the optional PS5 frame-time suggestion as a blocker.
The branch still needs integration against the current upstream base. I refreshed
maintof7e84c4cf1609cc10bac95a44cd431805e5ebc8aand checked head7ecf14ef124094e993240cb2fa04ae26ea4c34cf:tools/check_conventions.pypasses andgit diff --checkis clean.tools/check_main_sync.pyreports the branch is 2 commits ahead and 4,070 behind, with conflicts in six files: AGCCMakeLists.txt,ShaderResources.hpp/.cpp,Draw.cpp, andShaderDiskCache.cpp/.hpp. Fourteen touched paths changed on both sides since merge base366dd4e6b7.366dd4e6b7integration. They do not validate the current-main conflict resolution or its combined cache/draw behavior.Please reconcile those current-main changes while preserving the vertex-range proof, moved-buffer bounds, cache serialization/versioning, and tests. Then rerun the focused shader-extent, draw-binding, indexed-ring and cache tests (including the validation-layer run where available) on the integrated head. If the integration changes the measured path, refresh the paired performance capture as well. I did not run GPU tests locally.
The previous approval/findings apply only to their stated heads. No approval is warranted for this stale, conflicted integration point.
Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-02T19:30:22Z.
Review: APPROVED
Re-checked — approved
Since my review of
7ecf14ef12,mainwas merged in three more times. There are also three fixes: the Linuxsizeofconstants plus the memo byte count, the target trim inBindsVertexRange, and the kept-bytes test. The tree builds with GCC on Linux, the focused tests pass, and removing either the vertex bound or the new trim makes the tests fail.What changed since my last review
6c9873072f:ShaderDiskCache.cppassertssizeof(DescriptorBinding) == 680andsizeof(BufferResource) == 36.descriptorBindingBytesinRecompiler.cppnow countsbufferVertexExtent.de4912048e,837e2b0fcfand5a7da3c59fmergemain(most recentlya4eca2a056). The resolutions:MovedReadOnlyBuffersandCheckBufferAliasesapplyBytesUpToTargetto the vertex-bounded size.tests/cmakefragments.FormatVersionis 52.c9092458db:BindsVertexRangetakes the draw's target and applies the same trim asaddGuestBuffer.04db012394: the draw inRecordedKeptBytes.cppnow reads every vertex of its 64 KiB V#. TechLevelZero's NVIDIA run caught the earlier version of this test failing.What I ran
PR head
5a7da3c59f858a887346748c3f18109e6781eaea,maina4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8, merged with--no-ffin a clean worktree. Debian 13 VM, GCC 14.2.0, Release, Ninja, lavapipe (Mesa 26.1.6).maina4eca2a056git diff --checkcheck_conventions.py__linux__size asserts are evaluated)mainVUID-lines; nowas not found but was requestedlineFocused tests
agc_driver_graphicstakes over 30 s here. That is not this PR: its new case runs only under--vertex-range-bindings(agc_driver_vertex_range_bindings, 0.02 s). TechLevelZero's NVIDIA runs also showagc_driver_graphicsat 30–33 s.Negative control
The new tests call new APIs, so I disabled single parts of the change instead of restoring whole files.
BindsVertexRangecompares against the untrimmed size (the state beforec9092458db). Both tests fail:agc_driver_vertex_indexed_ring: "a ring whose first three vertices reach 8 bytes into the target: the draw did not replay its recipe: vertex range"agc_driver_vertex_range_bindings: "a template bound up to the render target was refused for the same vertex range and target"VertexBoundBytesalways returns the V#'s whole size. Both tests fail:agc_driver_vertex_indexed_ring: "shader buffer aliases the render target"agc_driver_vertex_range_bindings: "a read-only element indexed by the vertex index was not cut to the draw's last vertex"Afterwards I restored the merged file and rebuilt. Both tests pass again, and
git status --porcelainis empty.Previous findings
core/shader/recompiler/ShaderDiskCache.cpp:93and:99now assert 680 and 36, and the tree compiles with GCC 14.2 / libstdc++ on x86-64, where these asserts are evaluated.main: Resolved. The head merges cleanly intoa4eca2a056.MovedReadOnlyBufferssizes an element withBytesUpToTarget(address, VertexBoundBytes(...), stride, written ? nullptr : target).CheckBufferAliasespasses the vertex-bounded size toBytesUpToTarget.&state.colorandmaxVertex.core/shader/recompiler/ShaderDiskCache.hpp:16is 52;mainis at 51.BindsVertexRangeignored the target trim: Resolved.core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp:5855now appliesBytesUpToTargetwith the draw's target before it comparesitem.size. Negative control 1 shows the tests catch it.New findings
Blocking
None.
Non-blocking
None.
Not verified
main. The script skipped it because the baseline ofmainhas no validation run yet. I ran only the four new or changed tests under the layer (0VUID-lines); three of them do not exist onmain.04db012394and837e2b0fcf.9c5c8619f7), before the target-trim reconciliation. The author argues that the trim cannot change the measured path; that argument is plausible, but I did not check it on a title.CheckBufferAliases).Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T16:00:44Z.
Review: APPROVED
Re-checked — approved
The only new commit,
c2a1b50412, mergesmain4f41f4c375. It resolves the conflicts intests/ShaderMemory.cppandagc_shader_memory_tests.cmakecorrectly and movesFormatVersionto 53. The focused tests pass, with and without the validation layer, and the shader-extent test still fails without the tracker change.What changed since my last review
d66bdd5797,6c9873072f,c9092458dband04db012394are identical).c2a1b50412(parents5a7da3c59fand4f41f4c375):tests/ShaderMemory.cpp:verifyVertexIndexExtents(line 2369) sits next tomain's newverifyUnsetFormatImageMaterialization(line 2415).verifyVertexIndexExtentsis called from the--vertex-index-extentsbranch (line 11140) and from the default run (line 11265).tests/cmake/agc_shader_memory_tests.cmake:75: the WindowsPATHlist keeps bothmain'sagc_shader_sampler_limitsand this PR'sagc_shader_vertex_index_extents.core/shader/recompiler/ShaderDiskCache.hpp:16:FormatVersionis 53, becausemainis now at 52.main, the Linux size and field-count guards differ only by this PR's own two values:DescriptorBinding680 andBufferResource36 / 13 fields.mainchanged none of them.main4f41f4c375" paragraph. It matches what I see in the tree.What I ran
PR head
c2a1b504124505f0eb1dbe2891ad7de73cb6ca97,main4f41f4c375f5abb487dbd184fbc150f31994d762, merged with--no-ff(tree1bbc670209e63787042edbf553334eeaedf722e3) in a clean worktree. Debian 13 VM, GCC 14.2.0, Release, Ninja, lavapipe (Mesa 26.1.6).main4f41f4c375git diff --checkcheck_conventions.py__linux__size asserts evaluated)main;agc_driver_alpha_to_coverage_sample_mask_exportpassed on rerunmain(771 tests, layer loaded in 770, none missing)VUID-linesVUID-lines; nowas not found but was requestedline; layer inserted in the 2 Vulkan testsgit status --porcelainemptyFocused tests
As in my last review,
agc_driver_graphicsruns over 30 s on this machine. This PR's case in that executable runs only under--vertex-range-bindings(0.03 s).Negative control output
Previous findings
My previous review (of
5a7da3c59f) had no open findings. The earlier ones (Linuxsizeofconstants, conflicts, format number,BindsVertexRangetrim) stay resolved: the PR commits that fixed them are unchanged, and this merge keeps them. The format number is now 53, abovemain's 52.New findings
Blocking
None.
Non-blocking
None.
Not verified
5a7da3c59f, not at this head.BindsVertexRangeandVertexBoundBytescontrols at this head, because the merge does not touch those files. I did repeat the tracker control, since the merge touchedShaderMemory.cpp.9c5c8619f7).Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-04T15:20:05Z.
Review: COMMENTED
@savvaniss I looked at the point you raised, and the
RingRefusalschange reads right to me. With this PR the triangle binds the vertex-indexed V# only up to its last vertex, 48 bytes (your description above). A fill at byte 64 no longer overlaps what the draw reads, and serving the hit is then correct. The new fill over the first vertex keeps a refusal case in the test. On my machine, though, the PR's new ring test fails at this head.What I ran: head
9cd9bd5d9f, which already containsmainb11c7bf84f, Windows 11, WinLibs GCC, Release, AMD Radeon RX 9070 XT, driver 32.0.32015.12012, withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. The same set onmainb11c7bf84ffor comparison:mainagc_driver_address_draw_space_reuseand its_off,_transitions,_verify,_heldvariantsagc_driver_vertex_range_bindingsmainagc_shader_vertex_index_extentsmainagc_driver_vertex_indexed_ringmainagc_driver_recorded_kept_bytes0xc0000374(heap corruption), 3 of 3 runsNeither log has a
VUID-orSYNC-HAZARDline, and neither reports a missing layer. Without the validation layer, both tests still fail on this head.agc_driver_vertex_indexed_ringstops withAGC graphics: dual-source blending needs a float4 second color at location 0 index 1. That ismain's check atcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp:742. The test'sTargetState(tests/execution/VertexIndexedRing.cpp:116-133) value-initialises theState, sodualSourceBlendandreversedBlendstart false and 0 (Graphics/include/State.hpp:150-151). I haven't traced where they become set on this path. Your description lists this test among the 29 of 29 for this head on an RX 9070 XT. ItsGPUs testedline names driver 32.0.31041.1004, and mine is 32.0.32015.12012. Was your 4 Nov run on that older driver? A run of this test on a 32.0.32015 driver, or its log from your run, would show whether the driver is the difference.agc_driver_recorded_kept_bytesfails witha dispatch writing a copied 65536 bytes buffer left 0 bytes in its batch's kept bytes. Onmainthe same test crashes before it gets that far (table above). This machine can't separate the PR's effect frommain's crash. I'm not counting it against the PR, but your04db012394change to it isn't confirmed here either.I'll re-check once the ring test passes here, or once you can explain why it differs on this driver.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T09:53:02Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected implementation and tests support the stated vertex range bound; I did not run the reported checks, and one changed implementation file was not available in the prepared review folder.
What I ran
Reviewed head
3815a2d372303f53366172e2eb8daa33e4be10e2using the prepared diff and pinned repository reader. No build or test commands were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
ShaderResources.cppwas excluded from the prepared full-text files because it exceeded the review folder limit; I read its changed functions through the pinned reader. I did not read every changed file listed in the manifest, including some test and cache changes, so this review is incomplete. The build, tests, reported performance captures, and behavior on physical console hardware were not independently verified.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files and run the relevant checks on this head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T18:25:16Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed portions show no verified blocking defect, but the full review is incomplete because some changed files were excluded and checks were not run here.
What I ran
Reviewed head
4c80f37e58ec2990d0ca706ac85a900b6030f7d0against the prepared diff; no build or tests were run. The author reports Windows and Linux test runs indescription.md.Files read:
description.md,commits.md,manifest.json,diff.patch; changed source ranges inDraw.cpp,ShaderResources.cpp,ResourceTracker.cpp,ShaderDiskCache.cpp, andGraphics.cpp.Excluded by the prepared bundle as too large: full text for
ShaderResources.cpp,Graphics.cpp, andVertexIndexedRing.cpp. Other changed files were not read in full.Results
Findings
Blocking
None verified in the portions inspected.
Non-blocking
None.
Not verified
The full contents of
ShaderResources.cpp,Graphics.cpp, andVertexIndexedRing.cppwere not reviewed. Several other changed files were not read; only the changed ranges needed for targeted context were inspected. No build, test suite, GPU run, or performance capture was performed by this review. The reported test and performance results are author-supplied.To get this to a good state
Nothing is required. Optional: complete review of the excluded file contents and run the relevant checks on this head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T10:16:23Z.
Review: COMMENTED
Partly reviewed — no blocking findings in the parts read
Nothing blocks this in the parts read; the points below are optional, and the review is not complete, so this is a comment, not an approval.
What I ran
11995f8283438450ccf7f3056b6a2e51fa813127, basemain. No merged-preview check and no build; the initial checks in this run do not build.description.md,commits.md,manifest.json,files.jsonanddiff.patch: lines 1–400 and 915–1096 in full, and theResourceTracker.cpphunk at 939–1013.repo_read.py search) forGetSize,FormatVersionandSourceVersionat the head.Results
Findings
Blocking
None found in the code read.
Non-blocking
FormatVersionis 51, then 57. At the head it is 88 (core/shader/recompiler/ShaderDiskCache.hpp:16). The disk cache directory is keyed by the generatedSourceVersion, so a stale layout is still rejected. The PR does not need a version change of its own, but the description should be corrected.ShaderDiskCache.cppaddsvertexExtenttoBufferResourceandbufferVertexExtenttoDescriptorBinding, and updates the size guards and field counts to match (core/shader/recompiler/ShaderDiskCache.cpp:95,:101,:147). The buffer decode minimum goes from 27 to 31 (:887). I checked that the numbers agree with the diff; I did not compile them.Not verified
tests/Graphics.cpp,tests/ShaderDiskCache.cpp,tests/ShaderMemory.cpp,tests/cmake/agc_driver_graphics_tests.cmake,tests/cmake/agc_shader_memory_tests.cmake,tests/execution/AddressDrawSpaceReuse.cpp,tests/execution/RecordedKeptBytes.cpp,tests/execution/VertexIndexedRing.cpp. Their hunks are indiff.patchlines 401–914 and were not read.ShaderResources.cppandDraw.cpparound the hunks, including the template-reuse path inresolveDrawResourcesand the callers ofBindsVertexRange,VertexBoundBytesandMovedReadOnlyBuffers.vertexIndexedExtent,ResourceTracker.cpp). The code looks conservative, but the IR cases were not checked.To get this to a good state
Nothing is required. Optional: correct the
FormatVersionnumbers in the description.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T05:47:57Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
3d3efe5fc54a4e29a198a8def68a8013fb4be313. No commands or tests were run;repo_read.pywas used to inspect the prepared review bundle and targeted repository source.Results
Findings
Blocking
None found in the code inspected.
Non-blocking
None.
Not verified
The review was limited to targeted sections, not every changed file. Full text was not read for
Graphics/src/Draw.cpp,Graphics/src/ShaderResources.cpp,tests/Graphics.cpp,tests/ShaderMemory.cpp, andOptimization/src/ResourceTracker.cpp; targeted sections of the last two driver files andResourceTracker.cppwere inspected throughrepo_read.py. The changed test, cache, build, and other recompiler files were not read. The review bundle’sfiles.jsonwas unavailable, so the exactreviewedversus excluded inventory could not be confirmed;manifest.jsonmarksShaderResources.cppandGraphics.cppas excluded from bundled full text. Tests, builds, and reported performance measurements were not independently verified.To get this to a good state
Nothing is required.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.