Repository navigation
perf(agc): create the host import of a linear color target in registered memory - #9879
oneandonlydean merged 10 commits into
Conversation
|
This is a substantial follow-up to #9685, and the body clearly separates measured behavior from the unresolved dma-buf/shared-backing path and the two known import-run limitations. The test matrix, negative controls, validation-layer runs, and same-title A/B are detailed. The branch is exactly stacked on current #9685 head |
|
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.
Some 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.
|
f60f666 to
4bd8398
Compare
|
@MarcZX10, done: the stack is rebased onto On the combined tree (RX 6700 XT, AMD driver 32.0.21045.16010):
From a second review by huy, this head also adds a The hosted product jobs are skipped on this PR as on #9685, so this head's non-Windows code has not been compiled yet; the body says so. |
…red memory A linear color target got a resident image only when its memory already had a host import (boykopovar#6892). Every other draw into it was synchronous: copied in, drawn, waited for on the CPU and copied back. boykopovar#6892 only looked the import up because a first version that made it broke agc_driver_pixel_ancillary_word and agc_driver_pixel_fixed_point_position: the import over a short-lived block was compared, and the next block allocated at the same address stayed outside the write watch. A page committed again inside an excluded block is watched again since boykopovar#6759. On a lookup miss the draw now makes the import itself, with the new ColorTarget requester, when its registered ranges are writable, the whole import run is write-watched and the import keeps it watched: a separate alias of shared memory, a direct import of private memory that settles on Windows (1 MiB or more, when the import probe keeps the watch and a settle queue exists), or an import the probe keeps watched on other systems, where a dma-buf import must stay watched too if the range has shared backing. Private pages that the write watch armed read-only count as writable when their guest protection is, because the import opens them (a resident direct-memory run the CPU has not stored to since its last collect). The gate's scan stops at the first page that decides a refusal, and a run of private memory whose direct import would be compared is refused after one page query. A refusal is remembered for its run until the registry, the committed pages (Windows) or the write watch change, or a shared alias is mapped over the run, so a target that stays synchronous costs a lookup per draw. importRunAt checks this after its remembered failures and refusals and before it retires or evicts anything, through the helpers its own decision now uses: importWatching (settled, watched host-pointer and dma-buf imports) and importPages (the Windows page scan). A target whose import would be compared stays synchronous, because a compared import makes every refresh of the resident image compare the whole target. A target over an import that already exists is resident as before, with ExistingHostImportFor as the fast path, and APS5_NO_RESIDENT_LINEAR=1 still keeps every linear target synchronous. This is the case draft boykopovar#1191 (MichonGoddijn231849) was to bring back on top of boykopovar#6892 once partial-block write-watch coverage existed. agc_driver_linear_target_import_creation covers a target in freshly registered, write-watched memory (the draw is recorded, the target is imported and stays watched), a block freed and allocated again at the same address (it is watched, and the next draw starts from the CPU's bytes), a resident direct-memory run armed read-only by the write watch (the draw is recorded and the target imported; Windows), the gate over armed and read-only private memory (a compared import of an armed run is refused without opening it, memory committed read-only behind a writable registry range is refused without a count, an armed run is imported where imports stay watched; Windows), a 64 KiB block whose import would be compared (no import, a synchronous draw, the block stays watched), a 1 MiB block the guest registered read-only (no import, a synchronous draw), a 1 MiB run with one 64 KiB block outside the write watch (refused, the target stays watched), and the same run once that block is committed again (the refused run is imported; Windows). On other systems the test forces ImportWatch::Watch, so the watched cases also run where imports are compared (lavapipe in CI). The import requester tests count the new requester and check that it makes no compared import, no import of a range the guest cannot write and no import of memory outside the write watch. Co-Authored-By: Claude <noreply@anthropic.com>
4bd8398 to
175d986
Compare
|
Restacked without conflicts on #9685's rebased head Tested on
The PPSA14363 comparison in the description is from |
|
@thuanquang #9402 changes I'd propose no |
|
@janzezno, agreed: no |
|
@MarcZX10, the same-scene comparison on the current heads is in the description now, this time with no game running on the PC (the earlier table had a League of Legends match running next to it):
All three runs were made in one hold of the GPU and build locks, with Both heads still merge cleanly with |
|
@oneandonlydean, thanks for merging The runs are on |
|
@thuanquang #7465 just merged, and this branch now has a logic conflict with it in
One way out is to give the new block its own pieces (for example raise |
…ort-creation # Conflicts: # core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp
|
@oneandonlydean, thanks for catching it. I merged Tested on the merge (RX 6700 XT): it builds clean. The focused set with |
# Conflicts: # docs/dev/debt/libSceAgcDriver.md
|
Merged #9685's head On this head, on the RX 6700 XT, the build is clean. The focused set passes 3 of 3 (54 entries, including |
|
@thuanquang Thanks for merging #9685's d36311d and for the RX 6700 XT runs. I checked that Texture.cpp, Texture.hpp and the direct-write-completion test on this head are byte-identical to #9685's, and that your own layer is unchanged apart from that merge. I read the import gate again: the whole run has to be registered writable and write-watched and has to stay watched, refusals are dropped on registry, commit, unwatch and watch-policy changes, and a refused target just stays synchronous, so this looks right to me. One question, no change needed if it can't happen: on Linux the remembered refusal has no commit generation, so if a run can come back into the write watch without a registry or unwatch change, its target would keep drawing synchronously until something else clears it. Is there such a path on Linux, or does that only happen through a Windows commit? The next steps are on our side and #9685's: #9685 now needs a rebase, and once it lands this branch will need main again (CMakeLists.txt conflicts with current main), then CI on that head and agc_driver_graphics on Linux and Windows for the requester fixture. |
…rget-import-creation
|
@oneandonlydean On the Linux question: no, there is no such path on Linux, as far as I can tell from reading the code at this head (I have not run it on Linux).
This branch now has #9685's new head merged in ( |
|
@thuanquang I traced the Linux registration paths and refusal invalidation on 5575dc3. Mapping mutations advance the registry generation, refreshImports clears the gate refusals, and the direct probe registrations are temporary; I found no Linux reopen path needing another change. The merge keeps your own layer unchanged and includes #9685's refreshed head. This still lands after #9685, with full CI and the watched-import gate; the import-creation result needs the positive creation/reuse arm, not only compared cases. |
|
@oneandonlydean Thanks for tracing it. On the positive arm: on the RX 6700 XT (Windows 11 26200, AMD driver 32.0.21045.16010), against this head's libraries ( The creation arm runs right before reuse under the same condition and prints no line of its own. The test prints "only the compared cases run" when the probe import leaves the write watch, and it did not print it here. On Linux the test sets |
|
@thuanquang Thanks, that covers it. With the Linux path forcing the watch and requiring the probe import to stay watched, a Passed on Linux can't be the compared-only case, and our CI run on this head shows it Passed there. Your RX 6700 XT output covers the Windows positive arms. This still lands after #9685, with full CI on the final composition and the watched-import game check. |
|
@oneandonlydean The final composition is tested on the RX 6700 XT: |
boykopovar#9181 stopped write-protecting resident runs on Windows: the write watch no longer arms them read-only, and the import access opens nothing on them. The gate's case that counted armed read-only private pages as writable can no longer change a decision, and the tests that armed a resident run first could only skip. Remove the case: resident runs are read-write private pages and pass the writable check as they are. --armed becomes --direct, the same 2 MiB direct-memory run without the arming step. --armed-gate becomes --private-gate and keeps the checks that can still be reached: the direct run is refused under Unwatch and imported under Watch, and a block committed read-only while registered writable is refused without being counted. Co-Authored-By: Claude <noreply@anthropic.com>
|
@oneandonlydean, #9685 has landed, so I merged #9181 stopped write-protecting resident runs on Windows, and that broke two things here:
The commit removes the special case, so resident runs now pass the gate as writable private pages. The two cases become Results on the RX 6700 XT:
The description's current-head paragraph has the details. Its PPSA14363 numbers were measured before #9181, and it says so. |
boykopovar#9431 landed on main in its final form, so the tree is main's plus this branch's own changes. The resident-target test in Graphics::Draw keeps main's linearResident line from boykopovar#9879 and uses ColorTileModeIsLinear, so a GCN linear-aligned target is still not resident. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What
A linear color target gets a resident image only when its memory already has a host import (#6892). Every other draw into it is synchronous: copied in, drawn, waited for on the CPU and copied back. #6892 only looked the import up, because a first version that made it broke
agc_driver_pixel_ancillary_wordandagc_driver_pixel_fixed_point_position: the import over a short-lived block was compared, and the next block allocated at the same address stayed outside the write watch. Since #6759, a page committed again inside an excluded block is watched again.On a lookup miss, the draw now makes the import itself, with a new
ImportRequester::ColorTarget, when all of these hold:On Windows, resident direct-memory runs, where PPSA14363's targets live, are read-write, write-watched private pages since #9181, so they pass the writable check like any other private page.
A refused run is remembered until the registry, the committed pages (Windows) or the write watch change, or a shared alias is mapped over it, so a target that stays synchronous costs a map lookup per draw instead of a page scan.
importRunAtchecks this after its remembered failures and refusals and before it retires or evicts anything, through two helpers its own decision now uses:importWatching(settled, watched host-pointer and dma-buf imports) andimportPages(the Windows page scan, moved out ofimportRunAt). A target whose import would be compared stays synchronous, because a compared import makes every refresh of the resident image compare the whole target. A target over an import that already exists is resident as before, withExistingHostImportForas the fast path, andAPS5_NO_RESIDENT_LINEAR=1still keeps every linear target synchronous. The debt file gets an entry for the targets that stay synchronous.This is the case draft #1191 (@MichonGoddijn231849) was to bring back on top of #6892 once partial-block write-watch coverage existed. It builds on #9685: without #9685, a resident linear target is stored whole after every draw, which is slower than the synchronous path for PPSA14363's three 24 MiB targets. The branch therefore contains #9685's commits; this PR's change is commit
175d986c28. After it come @oneandonlydean's merge ofmain(f59787b272) and a merge of #9685's current head5b5dcaeaff, then a merge ofmain6c52b649e7(fe1927d398), then a merge of #9685's headd36311d661(b58a21d9f4).Why
PPSA14363 (METAL GEAR SOLID - Master Collection Version, own dump) draws its PS1 game into three linear 3072x2048 RGBA8 color targets whose memory has no host import, so on
mainevery draw into them is synchronous. Bring-up thread: #9615.Tested
Windows 11 26200, Radeon RX 6700 XT (gfx1031), AMD driver 32.0.21045.16010, WinLibs GCC 15.2.0 r7, Release,
BUILD_TESTING=ON.Current head
e1fa56c7bf:mainae7d59258emerged in after #9685 merged (6adad6733c, clean), plus one commit for #9181. #9181 stopped write-protecting resident runs on Windows, so the special case that counted armed read-only private pages as writable could no longer change a decision, and--armed/--armed-gatecould only skip ("the collects did not arm the resident run read-only"). The commit removes the special case; resident runs pass as writable private pages.--armedbecomes--directand--armed-gatebecomes--private-gate, without the arming step (see the test list). On the RX 6700 XT:agc_driver_linear_target_import_creationruns every case with no skip.agc_driver_bda_*(57ctestentries) passes 3 of 3. With the Khronos validation layer, 57 of 57 pass with 0VUID-lines (the layer was inserted 78 times, no "was not found" line).--private-gateblock: "read-write alias of shared guest memory 0x200100000+0x20000: the range does not start at a shared view".main5b5d24cb22(2026-10-26), with the exclusive GPU lock and the build lock. League of Legends was open on the PC, and no other game ran. The same route2 input on both sides, 480 s each:mainalone: 56 to 68 presents per 10 s from 90 s, p50 234 to 326 ms. The codec line comes at 423 s, and the Dock is not reached in 480 s.Earlier head
5575dc3108: a merge of #9685's headd6d8966bba(mainb930da950dmerged into #9685, onlyCMakeLists.txtconflicted there); this merge itself was clean, and the head merges cleanly withmain6cd36e6517. On the RX 6700 XT the build is clean. The focused set plusagc_driver_bda_*(55ctestentries) passes 3 of 3. With the Khronos validation layer, 55 of 55 pass with 0VUID-lines (the layer was inserted 74 times, no "was not found" line).ctest -R "^(agc|shader)_"passes 1010 of 1015: the 3sample_ordertestsmainfails on this GPU, plusagc_driver_sgpr_pattern_fill_keysand anagc_async_log_fataltimeout, both while four game instances ran next to the suite; run alone against this head's libraries, both pass 5 of 5.Earlier head
b58a21d9f4: a merge of #9685's headd36311d661, the per-64 KiB-block keep for drawn targets from @oneandonlydean's review on #9685 (details and red/green there). Only the debt file conflicted: #9685's narrowed entry and this PR's entry on the next line; both are kept. Tested on this head (RX 6700 XT, AMD driver 32.0.21045.16010): builds clean; the focused set withagc_driver_bda_*and #9685'sagc_driver_linear_target_direct_write_completion(54ctestentries) passes 3 of 3; with the Khronos validation layer 54 of 54, 0VUID-lines, the layer inserted 72 times;ctest -R "^(agc|shader)_"996 of 1002 with the 3sample_orderfailuresmainhas on this GPU and 3 timeouts under load from a parallel game run (shader_cache_runtime_sources,agc_driver_native_fmask,agc_driver_native_depth_clears), which pass when rerun alone.Earlier head
fe1927d398: a merge ofmain6c52b649e7on top ofbb58e7ddbd. It resolves the logic conflict with #7465 inimportRequesterTeststhat @oneandonlydean found: #7465's mapped range keeps pieces 6 and 7, and this PR's color-target block moved to its own pieces, 10 (writable) and 9 (read-only), with piece 8 left unregistered so that 10 is a run of its own, as 6 was before. Tested on the merge (RX 6700 XT, AMD driver 32.0.21045.16010): builds clean; the focused set withagc_driver_bda_*(54ctestentries) passes 3 of 3; with the Khronos validation layer 54 of 54 pass, 0VUID-lines, the layer inserted 72 times, no "was not found" line;ctest -R "^(agc|shader)_": 999 of 1002 pass, with the same 3sample_orderfailures asmainon this GPU. Onfe1927d398itself (onlyBdaResources.cppdiffers from that merge):agc_driver_bda_*(7 entries) passes 3 of 3, and 7 of 7 with the validation layer, 0VUID-lines.Earlier head
bb58e7ddbd: @oneandonlydean's merge ofmain11d6efa06c, then a merge of #9685's head5b5dcaeaff, which adds a fix to #8126's keep rule for drawn targets and a test (#9685's body). The runs below are on04a6c9e4cc: this PR's commit on the same #9685 change, rebased onto11d6efa06c. Its tree differs from this head only in the position of oneadd_testblock inCMakeLists.txtand in one debt entry. Builds clean. The focused set withagc_driver_linear_target_import_creation(47ctestentries) passes 3 of 3. With the Khronos validation layer: 47 of 47, 0VUID-lines, the layer inserted 65 times, no "was not found" line.ctest -R "^(agc|shader)_": 998 of 1001 pass, with the same 3 failures asmainon this GPU (agc_driver_sample_order,_grid_reference,_recipe_depth_locations).New test
agc_driver_linear_target_import_creation, eight cases. On systems other than Windows it forcesImportWatch::Watchfor its run, so the watched cases also run on a device whose imports are compared (lavapipe in CI):--created: a target in freshly registered, write-watched memory. The draw is recorded, the target is imported, and its memory stays watched.--reused: a block freed and allocated again at the same address. It is watched, and the next draw starts from the CPU's bytes.--direct(Windows): a 2 MiB resident direct-memory run (GuestArenaMapDirect), the layout PPSA14363's targets use. The draw is recorded, the target is imported, it stays watched, and the pixels are right after the device wait.--private-gate(Windows, whatever the import probe says): a 512 KiB resident direct-memory run and a 128 KiB block whose second half is committed read-only while the registry still calls it writable. UnderUnwatch, the run's import, which would be compared (it is below the settle floor), is refused. UnderWatch, the read-only block is refused without being counted, and the run is imported.--outside-watch: a 1 MiB block whose last 64 KiB was taken out of the write watch, with the target at its start. No import, a synchronous draw, the target stays watched, and the pixels are right after the device wait.--rewatched(Windows): the same layout, refused once; then the unwatched block is committed again, which brings it back into the write watch without a registry change. The next draw is recorded and imported, so the remembered refusal was dropped.--read-only-registry: a 1 MiB write-watched block that the guest registered read-only. No import and a synchronous draw.--compared: a 64 KiB block whose import would be compared. No import, a synchronous draw, and the block stays watched.The import requester tests in
BdaResources.cppcount the new requester and check that it makes no compared import, no import of a range the guest cannot write, and no import of heap memory outside the write watch.085f3cf29a(this change before the review fixes) except the whole-run check, which was removed from the review-fix tree:Draw.cppof fix(agc): store resident linear color targets at completion points, limited to their drawn rectangles #9685's head, the rest of the change kept):--created,--reusedand--armed(now--direct, measured before fix(libc): stop write-protecting resident runs on Windows #9181 with its arming step) fail ("...the draw into a linear target in registered, write-watched memory without a host import waited for the GPU instead of being recorded");--armed-gateand--comparedpass.--comparedfails, and so doesagc_driver_graphics("a color target's import was made where imports of its memory are compared").--outside-watchfails ("run outside the write watch: a linear target whose import run has a block outside the write watch was drawn into a resident image").--armed-gate(now--private-gate) fails, because the import of the block committed read-only throws ("read-write alias of shared guest memory ...: the range does not start at a shared view").4bd83988c7):--read-only-registryfails ("range registered read-only: a linear target in memory the guest registered read-only was drawn into a resident image").175d986c28, restacked without conflicts on fix(agc): store resident linear color targets at completion points, limited to their drawn rectangles #9685's rebased headcee2512ef8(mainff191e29d1; still merges cleanly with513ca7e558): the focused set plusmain'sagc_driver_linear_readback_labelandagc_recorder_*entries, 26ctestentries, pass 3 of 3. With the Khronos validation layer on the same set, this head passes 26 of 26 (layer inserted 33 times) andmain513ca7e55816 of 16 (19 times), with 0VUID-lines and no "was not found" line on either. This PR's commit is unchanged by the restack; the results below are from the commits they name.4bd83988c7(rebased ontomain9d6adeb550), 18ctestentries, 3 rounds each, all pass: the new test; fix(agc): store resident linear color targets at completion points, limited to their drawn rectangles #9685's linear-target tests (completion_pointswith itssync_flipandunpipelinedentries,completion_stores,cpu_writes,dispatch_access,draw_bindings,rectangle_bound,resident);address_passeswithaddress_passes_draw_transitionsandaddress_passes_targets_split;store_over_untracked;graphics;pixel_ancillary_word;pixel_fixed_point_position; andhost_import_windows.VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1,ctest -V,VK_LOADER_DEBUG=layer), same entries: on fix(agc): store resident linear color targets at completion points, limited to their drawn rectangles #9685's heade5edf0cd4a(this PR's base), 17 of 17 pass (all but the new test), with the layer inserted 25 times. On this head, 18 of 18 pass, with the layer inserted 26 times. Neither log has aVUID-line or a "was not found" line.APS5_NO_RESIDENT_LINEAR. The existing linear-target tests use private blocks of 16 to 128 KiB, which the gate keeps synchronous on Windows.uint8x4_color_target_no_residentkeepsAPS5_NO_RESIDENT_TARGETS=1, which now also prevents the import creation. With the gate disabled, so that the small-block tests ran resident even over compared imports,pixel_ancillary_word,pixel_fixed_point_position,pixel32_ar_export,pixel_uint16_export,pixel_sample_coverage,srgb8anduint8x4all passed, which also shows that perf(agc): linear color targets over imported memory get a resident image #6892's original failure no longer reproduces since fix(agc): restore write-watch coverage for remapped pages #6759.ctest -R "^agc_"on this head4bd83988c7(basemain9d6adeb550): 911 of 914 pass; the 3 failures are the threesample_orderentries thatmainfails on this GPU and toolchain. Before the rebase,f60f66658eonmaind6eafa54d0passed 895 of 900, with the same failures plus two thatmainhas since fixed.PPSA14363 (measured before #9181): MGS1's PS1 part, on the heads of that time.
mainff191e29d1libraries (prepared from #9685's build, so #9115's trophy fix is onmain), onlylibSceAgcDriver.prxswapped: #9685's headcee2512ef8(this PR's base) against this head175d986c28, both built clean from their commits. Same scripted route, 300 s,APS5_TRACE_SUMMARY_EVERY=10, the first 100 frame dumps (every 30th present), a trace window at 200 s, in the order this PR, base, this PR, all three in one hold of the GPU and build locks with no game running on the PC. Per 10 s window from 80 s, when the PS1 part starts, without the window that ends with the trace write:cee2512ef8(#9685)On the base, every draw into the three targets is synchronous: the trace window spends 129.4 ms per frame in
ColorTarget.Writeand 84.3 ms inGraphics.Wait.Summary lines of the trace window (200 to 220 s), the base first:
{"commit":"cee2512ef812","dirty":false,"env":{"APS5_DUMP_FRAMES":"100","APS5_DUMP_FRAMES_EVERY":"30","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"200:20","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.10.1 (AMD proprietary shader compiler)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32690,"title_id":"PPSA14363","title":"METAL GEAR SOLID - Master Collection Version","content_version":"03.000.000","resolution":"1920x1080","window":{"spec":"seconds 200:20","first_present":4104,"ms":20582.143},"presents":58,"frame_ms":{"p50":616.164,"p90":735.007,"p99":786.226,"max":786.226},"gpu_busy_ms_per_present":4.95,"worker_busy_pct":{"queue worker 0x0":96.906},"top_phases_ms_per_frame":{"Driver.Packet":343.874,"Graphics.Draw":343.452,"Driver.Packet.draw":288.471,"Driver.Draw":288.446,"Driver.Draw.draw_enqueued":287.151,"ColorTarget.Write":129.356,"Graphics.Wait":84.328,"Graphics.Wait.fence_wait":83.858},"trace_dropped":false,"trace":"aps5-trace-cee2512ef812-25568.json.gz"}{"commit":"175d986c2890","dirty":false,"env":{"APS5_DUMP_FRAMES":"100","APS5_DUMP_FRAMES_EVERY":"30","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"200:20","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.10.1 (AMD proprietary shader compiler)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32690,"title_id":"PPSA14363","title":"METAL GEAR SOLID - Master Collection Version","content_version":"03.000.000","resolution":"1920x1080","window":{"spec":"seconds 200:20","first_present":11899,"ms":20003.081},"presents":1199,"frame_ms":{"p50":16.683,"p90":16.897,"p99":17.063,"max":17.768},"gpu_busy_ms_per_present":1.811,"worker_busy_pct":{"queue worker 0x0":6.171},"top_phases_ms_per_frame":{"VideoOut.Flip":13.265,"VideoOut.Flip.vblank_wait":12.494,"Driver.Packet":1.026,"Driver.Packet.draw":0.676,"Driver.Draw":0.666,"Graphics.Draw":0.647,"VideoOut.Flip.present":0.622,"Driver.Present":0.619},"trace_dropped":false,"trace":"aps5-trace-175d986c2890-24864.json.gz"}tools/performance_compare.pyon them: mean frame 354.865 to 16.683 ms, p99 786.226 to 17.063 ms, GPU busy per present 4.950 to 1.811 ms. The traces are not attached, because these runs come from a commercial title (asked on #9373 whether summary lines are enough).tools/check_conventions.pypasses.Overlap: #9402 (@janzezno) changes
refreshImportsright after the line where this PR clears its remembered refusals; agreed on #9879 that neither depends on the other and the one that merges second rebases. #10025 (mehmetbayoglu) changes thepageReadOnlycondition of the page walk inimportRunAt, which this PR moves intoimportPages: a textual conflict, so the one that merges second carries that line over.Left for follow-ups (from the reviews): a refused run that joins a neighbouring range is not retried with the target's own range, and an import made by another requester can still replace the target's import with one over a partly unwatched run.
Not tested: Linux and macOS. The gate's shared-backing and dma-buf branch has never run, and this head's non-Windows code (that branch, and the test's
ImportWatch::Watchoverride) has not been compiled outside CI; the version before the review fixes was syntax-checked with g++ 13. GPUs other than the RX 6700 XT.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