feat(agc): preserve uniform initial multisample draw contents #15986
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15986"
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 Amoenus on 2026-11-05T06:13:24Z.
What
Preserve an exactly representable texel repeated over the complete mapped plain multisample color footprint at its first actual draw. Main clears the new native image to zero, so a partial draw loses the untouched initial samples. This slice captures outside the targets lock, checks depth/color ownership without retiring it, and initializes through the existing exact native clear. Nonuniform, unmapped, unsupported and unresolved-alias inputs throw.
This replaces only the uniform initial-draw part of reverted #6973. It excludes nonuniform R_X uploads, staging lifetime/accounting, guest publication and generic sampled-layout changes. The first commit is test-only prerequisite #15985; the feature itself is one commit. The nonuniform follow-up is now #16086; #6987 now supplies the saved-baseline/readback adaptation. #6989/#6995/#7002 still need their publisher/consumer refresh; this PR alone does not unblock that stack.
Attribution: StepFPV's depth-owner diagnosis and overlap-query idea informed the nonmutating preflight; this does not adopt the proposed zero-clear fallback. Host clear behavior follows vkCmdClearColorImage using existing AnyPS5 footprint/format conversion. Console equivalence and remaining paths are recorded in library debt.
Tested
Final head
af5bfe4e5e74e2ff57a7726e6d013452904e7b92is based on main07fae3d172f4ffcdd8fb0eed76a475a8630e716d. The first pinned refresh at main6185bdcfc4e05bbc5a7b61a74ba6345f941a2b6epassed 22 physical-GPU processes; the focused follow-up on this final head passes 16, with the exact group/source breakdown in the sweep report, commands, raw logs and hashes. Both use RTX5080 and AMD iGPU on the same machine. Main controls pass32 processes at the first pin and26 at the final pin; absent new capability registrations are not counted as main passes.The final selection includes all three uniform/refusal/capture-hook groups, the four #15964 depth regression groups and ordinary multisample sampling. Its own feature commit remains separate from #15985. The first comparison also retains the corrected backing/order fixtures. Original alias/view assertions are retained; these are not restored constructor-time guest reads or a generic sampled-layout rewrite.
Full configured native libraries/relinker and the selected real execution targets build. Required Vulkan, app shader cache/journal disabled, serial verbose CTest with30-second bound, loaded Khronos1.4.363 and actual device identity verified per GPU process. No skips, VUIDs, SYNC diagnostics or validation warnings/errors. Selected CPU checks, conventions and whitespace pass. Added/removed topic lines are unchanged by these mechanical updates; no new implementation or title/FPS claim. The newer main changes shared f16 probing/target/request serialization, which is why the focused follow-up was run.
Earlier qualification/fault controls retain their original pins: evidence 1, evidence 2. They are not rerun-control claims at this new head.
The green hosted Windows job is a narrow registration/link/changed-guest-test check; full build, libs and AGC CTest were skipped. Full hosted Linux/Windows validation remains a maintainer action, and older independent reports retain their actual heads.
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)