Repository navigation
Conversation
…; patch relocated push constants without copying the result Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…first Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…prepared shader A stage's donor is found by its prepared shader, its own user words and the contents behind its relocatable words, so a texture learned under one state serves every state. A draw whose first stages validate reuses them when a later stage misses, and a known decode is reused on a miss. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…moved The recompiler reports the captured words that are a buffer descriptor's base address and nothing else (never an operand of the walk), and where each lands in the result. Validation masks them, and a hit that differs only there patches the new addresses into a copy of the result. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…thout a copy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…utside merged programs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pixel shader loads a buffer descriptor through a user-data pointer and reads its colour from that buffer. Drawn again with the descriptor's base address changed, with the same or other contents, it hits the cached draw; with APS5_NO_DRAW_RELOCATION=1 it does not. AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… slots Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 tasks done
This was referenced Dec 2, 2026
Open
perf(agc): compare captured memory before recording only behind a wait memory has not satisfied
#320
Open
Open
This was referenced Dec 2, 2026
Open
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Second step for boykopovar#4054, stacked on boykopovar#4943. That PR finds a cached draw when the user-data pointers moved and the data behind them is equal. A guest driver that keeps its buffer descriptors in a table reached through such a pointer (RADV's descriptor sets) still missed on every draw whose buffers moved, because the descriptor's base address is among the words a stage is validated against.
bufferBaseSlotsfield of a result, and its Linux-only size asserts expect the grown structs.AnyPendingOverlapsconsults the pending image range index first. The state the filter compares against is kept per command buffer, in the recorder batch's open render pass: it is reset when a new pass starts and marked unknown after the back-face and second-channel splits and after stencil replay (which sets the stencil reference itself).APS5_VERIFY_DRAW_DATA_HITS=1) is left to that verification instead of being reused.APS5_NO_DRAW_RELOCATION=1turns the relocation off,APS5_NO_DRAW_STATE_FILTER=1the dynamic state filter.Only the commits after boykopovar#4943's head are this PR.
Tested
Windows 11, NVIDIA GeForce RTX 5070 Ti, MinGW-w64 GCC 15.2.0, rebased on main
940eba9a2.ctest: 1270 of 1292 pass, 14 skipped.guest_call_trace_abort,windows_backtrace_reportandagc_driver_store_over_untrackedfail, and fail the same way on plain main here.agc_driver_prepared_shaders_debugfailed once in a parallel run and passes alone. Three newer tests,agc_driver_prepared_graphics_prebuild_0/_1andundeliverable_host_exception, fail under my test runner because it skips their environment changes and pass pattern; run with those, all three pass.ShaderDiskCache.cpponly compile on Linux. I have no Linux build; I compiled the structs under MinGW libstdc++ on x86_64, where all asserted sizes match.agc_shader_disk_cache's result round trip now also sets and comparesbufferBaseSlots.agc_driver_draw_cache_moved_buffer: a pixel shader loads a buffer descriptor through a user-data pointer and reads its colour from that buffer. Once the draw has been seen twice, drawing it again with the descriptor's base changed, with the same or other contents, hits the cached draw. It fails withAPS5_NO_DRAW_RELOCATION=1.main940eba9a2, this PR and perf(agc): find cached draws across moved user-data pointers boykopovar/AnyPS5#4943 against the same build without them (both with the same local changes the frontend needs to boot, immediate present, audio muted, three alternating unprofiled runs): audio produced at 34.5%, 35.7% and 35.6% of real time without, against 45.7%, 44.1% and 42.8% with.4430780bd(without perf(agc): cache a draw key the second time it is seen boykopovar/AnyPS5#5216) plus local changes outside this PR that the frontend needs to boot. perf(agc): find cached draws across moved user-data pointers boykopovar/AnyPS5#4943 alone against perf(agc): find cached draws across moved user-data pointers boykopovar/AnyPS5#4943 plus this PR, same local base, one thread,ANYPS5_PRESENT_MODE=immediate, two unprofiled runs each: audio produced at 43.6% and 43.4% of real time against 57.6% and 57.9%. One profiled run each: queue worker 41.5 µs against 30.7 µs per draw packet; stage captures per 10 s 92,728 in 185,141 draws against 14,859 in 238,439; draws with every stage reused 75% against 96.8%.APS5_VERIFY_DRAW_ENTRIES=1, which captures every hit again and compares: 0 stages differed in every report (118,722 hits in the largest).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code