Repository navigation
feat(agc): serve lane-keyed, pointer and runtime image-table columns - #10193
Celegans12 wants to merge 146 commits into
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed the three-commit delta after #7642 head 594b34659a97084c2d8fe5cb29896f1f216b4cf6, as requested. The new pointer/indirect shader tests and the lane/pointer device-path tests cover useful portions, but the Tested section does not identify successful results on this PR head: it gives the 12/12 NVIDIA/lavapipe counts for #7642, then says the new tests fail on that base. The hosted checks on this head are only conventions/intake/labels; runtime jobs are skipped by policy. Please report exact-head results for the new tests, with the focused AGC validation-layer settings and no missing-layer/VUID output. In particular, agc_shader_device_runtime_address_columns verifies compilation/planning only; please add or provide a device-path regression proving a runtime-address T# is recorded as a miss, resolved at Present, and serves the correct texel in the following batch with APS5_KEEP_UNEXPECTED_DEVICE_IMAGES. The stack depends on #7642, whose current PR head is not mergeable with main, so refresh the stack and rerun its focused tests once that base is rebased before merge.
|
@Celegans12 thanks for opening it. Here's what GitHub's runners make of this head (414f92a, the three commits on #7642's 594b346), from my fork (run): the device image, bindless and image table tests, 21 on each runner, 10 runs in a row.
The run's comparison tree has |
|
Thanks for the exact-head runner matrix. It addresses the missing runner/validation evidence: on 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.
|
|
@MarcZX10 thanks for the close read. You were right that the runtime-address test only stopped at compilation, so I added an end-to-end one as a fourth, test-only commit (bc75250). One honest gap: the driver test harness has no window, so it can't present. Between the batches it waits for the device to go idle, so the misses drain and the next batch's I've rewritten Tested with exact-head numbers. On bc75250, with the validation layer, DetailsCommands: |
|
With
Suggestions:
No errors or device loss in the run. With the disk full I couldn't measure the speed effect yet. AI-assisted. Tested by me on my own machine. |
Co-authored-by: Yunus Shaikh <75296019+EagleBearerYS@users.noreply.github.com>
…tate CPU copies and draw-stage heap reasons
…pair Load a released resource plan instead of treating the stage as planless, and on the first mixed retry drop reused per-draw stages so they rebuild in GPU mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…them per use A GPU-mode stage's shader data, flattened SRT and image table map reuse the ring span written for the same words while the batch still holds its chunk, so a repeated draw or dispatch points at the table already in the heap. [gpu-heap] reports ring spans written and kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and slots are unchanged writeHeapStage skips validating, patching and copying the shader data words when the guest words and user data match the previous write, the stage's slots are current and the span is still held. APS5_VERIFY_GPU_HEAP recomputes the words and fails if they would differ. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ap under APS5_PIPELINE_STATS Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…at, 63 yabanana's #7223 now takes 51, the number this PR had, and 52-62 are held by the open PRs: #10000 52, #8939 53, #10489 54, #9457 55, #9633 56, #9749 57, #10193 58, #9790 59, #9969 60, #10846 61, #7642 62. So this PR takes 63 and a cache written by #7223's recompiler is not read as this one's.
What
Stacked on #9508, which retains #7642 and both dependency authors' original commits. Please review the device-image-table changes and the merge resolution.
With
APS5_KEEP_UNEXPECTED_DEVICE_IMAGES=1, keep keys missed by the CPU pre-pass on the device image path. Resolve recorded misses so later dispatches can use pointer, indirect and GPU-derived runtime T# columns. Present settlement follows the existing GPU-path policy; heap availability follows the parent's extension-revision policy. Sampler support remains in #13928/#13929.Merge current #9508 and main, preserving main's interpolation and feature-digest cache keys alongside device-table selection. Request format 57 records that selection for replay, accepts supported formats through 52 and 55, and rejects unsupported 50, 53, 54 and 56. Shader-cache format 75 separates the combined layout from the earlier formats. The reported title-scale cache growth remains unresolved.
The combined-stack scan reports 66 shared-line or export overlaps, including dependent #13928/#13929 and the request/cache-format branches; 142 conflicting branches could not be compared. Reconcile formats and shared changes as those PRs land.
Tested
Based on
main096c455 and #9508. Windows 11 / MinGW-w64 GCC 15.2.0, Release with-DBUILD_TESTING=ONand SPIR-V Tools: 23 selected serializer, shader-cache, image-table, heap-slot and device-path tests passed three times on NVIDIA RTX 3080 Laptop / 610.62 with validation 1.4.363; no VUIDs or skips. The serializer test failed before recording the device-table flag and passed after the fix; it also checks version-55 compatibility and reserved-version rejection.Ubuntu 24.04 WSL / Mesa 25.2.8 llvmpipe / LLVM 20.1.2, validation 1.4.363: nine cases passed three times, including the shader-cache and column tests; 14 heap-dependent cases skipped. No VUIDs were reported. Asynchronous userfaultfd write protection and native descriptor-heap coverage were unavailable.
Not tested: full suite, native Linux heap, current titles/FPS, persistent-cache growth, production windowed presentation or the external old-layer failure. A contributor measured an earlier head on a local title stack with additional experiments; that does not validate this head or settle cache growth.
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)