test(agc): keep the private gate's direct import under the Windows settle floor #28029
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28029"
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 Plyxen on 2026-11-28T05:02:07Z.
What
agc_driver_linear_target_import_creationfails on Windowsmain(a163d4b886) on every GPU:The
PrivateGatecase (e1fa56c7bf, 2026-10-26) maps a 512 KiB direct block (ResidentBytes / 4) and expects its color target import to be refused underImportWatch::Unwatch, because the block is under the settle floor. At that time the floor was 1 MiB.71dad17b46(2026-11-20) lowered the Windows floor (PrivateSettleFloorBytes) to one 64 KiB block plus one byte. A private import larger than 64 KiB now settles at the import and stays in the write watch. That is the intended behaviour, so the 512 KiB import is now made. That commit updated the recorder test, which setsAPS5_SETTLE_FLOOR_KIB, but not this case.The case now maps one 64 KiB block (
BlockBytes), which is under the default floor, so it again checks what it describes. The 16 KiB color target (TargetBytes) fits in it. The read-only flexible case and the watched case are unchanged. The driver is unchanged.#26650 reports this failure and names two fixes. #26662 takes the other one: it keeps the whole test at the old 1 MiB floor with
APS5_SETTLE_FLOOR_KIB=1024. This change keeps the default floor, so the gate checks the floor Windows runs with. Only one of the two should merge. I missed #26662 when I opened this, because it changes only the test's CMake registration.The Windows Build job's last finished run (
ab6fe4a981) already had71dad17b46. Its Vulkan tests skip without a device, so CI did not catch this.Tested
Windows 11, Vulkan SDK 1.4.363 validation layer. I ran 29 tests on each GPU (
ANYPS5_GPU) withANYPS5_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_label_trap_committer_resolve|agc_driver_linear_target_.*|agc_read_traps_over_host_pointer_imports_driver|agc_write_tracking.*|agc_write_watch_coverage.*)$' -V --repeat until-fail:3. The runs comparemaina163d4b886with this change, which was applied together with #28028:mainagc_driver_linear_target_import_creationfailsagc_driver_linear_target_import_creationfailsEvery log shows the loader inserting
VK_LAYER_KHRONOS_validation. None containswas not found but was requested by env var VK_INSTANCE_LAYERS. Neithermainnor the change logs aVUID-error. Every test selected the GPU it was given.The branch is rebased onto
main4c7578e0a4. None of the 30 commits in between touch this file.python3 tools/pr_overlap.py --names PrivateGatereports no matching export changes, becausePrivateGateis a test case.python3 tools/pr_overlap.py --branch test/agc-private-gate-windows-settle-floorfailed closed. #21649 sharesLinearTargetImportCreation.cppand conflicts withmain, so I compared it by hand. It changesDmaBufSparseFailure, notPrivateGate.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
Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by arcwiser on 2026-11-28T09:05:04Z.
Review: APPROVED
Reviewed exact head
131fdc1734bde273fbda5f5b986ef99631b142d9.The fixture now allocates exactly
BlockBytes(64 KiB), which is below the current defaultPrivateSettleFloorBytes()of 64 KiB + 1, while the 16 KiB color target still fits inside the block. That restores the intended private-import gate assertion without changing production behavior. The linked issue provides reproducible Windows failures across AMD and NVIDIA, and the exact head has both the author's repeated Windows runs and an independent Linux/RADV run. PR #21649 touches the same file but a different test path (DmaBufSparseFailure).Local checks:
tools/check_conventions.py --base upstream/main --head upstream/pr-28029,git diff --check, and a merge-tree check all passed. I could not run the native Vulkan test locally because this machine has no configured C/C++ compiler/test build, so I relied on the two exact-head GPU reports for runtime coverage.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T09:20:38Z.
Review: APPROVED
Reviewed — looks good
The change reduces the private-gate test allocation to one 64 KiB block, matching the stated settle-floor scenario; no blocking defect was found in the changed code.
What I ran
Reviewed head
131fdc1734bde273fbda5f5b986ef99631b142d9. I readdescription.md,commits.md,manifest.json,diff.patch, and the changed source ranges at the pinned head usingrepo_read.py; I did not run tests.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The remaining contents of
LinearTargetImportCreation.cppwere not read.files.jsonwas not available in the review bundle, so the excluded-file list was not verified. Runtime behavior and author-reported test results were not independently verified.To get this to a good state
Nothing is required.