Repository navigation
test(agc): force a copied allocation in label ordering checks - #23479
oneandonlydean merged 1 commit into
Conversation
|
Tested on an Apple M1 (macOS 26.5, Apple clang 21.0.0), x86_64 Release under Rosetta 2, Vulkan through MoltenVK (LunarG SDK 1.4.363.0). The tree was
On this device the fixture already reached its checks without this PR (it prints AI-assisted: yes (Claude Code) |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The changed fixture code is sound on inspection; I did not run its tests, and the reported platform results were not independently verified.
What I ran
Read the prepared diff and the complete changed file at head 4349fe5f2605bfc5fa4e19a43606e3d8a5546703, plus the GuestAllocations API declarations. No build or test commands were run.
Results
| Check | Result | Note |
|---|---|---|
| Diff and source review | passed | One changed file read |
| Build and tests | not run | Reported results not independently checked |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The fixture was not built or run here. The author-reported Linux and macOS results were not independently verified. files.json was unavailable through the reader; the manifest lists one changed file, and its full text was read. No excluded-file list was available.
To get this to a good state
Nothing is required.
|
Windows + NVIDIA result for head Host: Windows 11 26300, Intel i7-12700K, NVIDIA GeForce RTX 2070 SUPER, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r6), Release, Validation-layer protocol on
The tests this PR adds or changes ( AI-assisted: yes (Claude Code), the runs and the numbers above are from this machine. |
|
Ran the copied-writer label-order fixture with the Khronos validation layer on Linux and an NVIDIA GPU; the existing runs here are RADV, MoltenVK and Windows + NVIDIA. Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release, NVIDIA GeForce RTX 4090 (vendor
The 4090 reports No new AI-assisted: yes (Claude Code) |
|
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.
|
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
4349fe5 to
098f15e
Compare
|
Rebased onto Re-verified on Arch Linux
AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The changed test forces the copied allocation through the copy/write-back path by registering only its interior, and the inspected code supports the stated intent.
What I ran
Reviewed head 098f15e6c74902bd1d074b59aacd627bb55241f7. No test or build commands were run; the reported test results are author-supplied.
Results
| Check | Result | Note |
|---|---|---|
| Changed-line review | passed | All 12 added lines inspected |
| Tests | not run | Results in description are author-reported |
| Build and conventions | not run | No local checks run |
Findings
Blocking
None.
Non-blocking
None.
Not verified
No tests or build checks were run. The author reports six focused test passes on the reviewed head and successful convention checks, but these results were not independently verified. No changed files were excluded. Read: review/description.md, review/commits.md, review/manifest.json, review/diff.patch, review/README.md, and all 274 lines of core/libs/prx/libSceAgcDriver/tests/execution/CopiedWriterLabelOrder.cpp.
To get this to a good state
Nothing is required.
What
The copied-writer label-order fixture uses a record at
+0x1004to obtain a copied buffer. On a device reporting four-byte storage-buffer alignment, the record binds in place and the fixture exits 77 before checking the copied writer's label ordering (including the unimported-label pass added by #7464).Register only the interior of the copied block, leaving one byte unregistered at each end (
GuestBlockOptions{.wholeAllocation = false}). That guest allocation cannot form an aligned host import, so it takes the CPU copy/write-back path. The direct control and label blocks use whole registered allocations, andunimportedLabelsretains #7464's isolated three-block layout (GuestBlockOptions{.isolated = true}). The existing record offsets, shader, pending-completion counts, label visibility checks, unimported-label check, CPU-store-after-label check and stream ordering assertions are preserved. Removing the alignment-dependent early exit makes a missing copied writer fail its pending-count assertion.Overlap review: #7464 has now merged; this rebased head (
098f15e6c7) combines itsisolatedoption with registration padding inGuestBlockOptions. Open PRs touchingCopiedWriterLabelOrder.cpp— #10442 (early unimported labels), #13863 (opt-in async compute lane), #13920 (targeted storage waits by writer lane), and #20172 (MoltenVK host labels) — are independent changes; this patch does not incorporate their production behavior.Tested
Linux
7.3.5-arch1-1, AMD Radeon RX 6650 XT (RADV NAVI23), RADV Mesa26.3.1, GCC16.2.1, Release, Khronos validation1.4.363. Rebased head098f15e6c74902bd1d074b59aacd627bb55241f7onmain729981cb5a; this PR changes onlyCopiedWriterLabelOrder.cpp.Same machine, GPU and validation environment for
main(729981cb5a) and this PR (098f15e6c7):ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,VK_LOADER_DEBUG=layer.main(729981cb5a), default and drain modes (ctest -R '^agc_driver_copied_writer_label_order(_drain)?$' -V): 2 skipped (expected skip on 4-byteminStorageBufferOffsetAlignment), 2 validation-layer insertions, 0 missing-layer warnings, 0VUID-errors.098f15e6c7), default and drain modes (ctest -R '^agc_driver_copied_writer_label_order(_drain)?$' -V --repeat until-fail:3): 6 passed, 0 skipped, 0 failed (3 fresh processes per mode, all printingcopied writer label order tests passed), 6 validation-layer insertions, 0 missing-layer warnings, 0VUID-errors.python3 tools/check_conventions.py --base origin/mainpasses. Clean merge-tree againstorigin/main9a66a08b83.Prior head
4349fe5f26(before the #7464 rebase) also received external reports on:Those prior-head reports have not been re-run on
098f15e6c7.Normal-build reproduction:
env ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 \ VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer \ ctest --test-dir build -R '^agc_driver_copied_writer_label_order(_drain)?$' -V --repeat until-fail:3Checklist
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)098f15e6c7); prior head4349fe5f26external reports: Apple M1 / MoltenVK on macOS 26.5, NVIDIA RTX 2070 SUPER on Windows 11 26300, NVIDIA RTX 4090 on Arch Linux 7.3.4, NVIDIA RTX 3080 + AMD Radeon iGPU on Windows 11