fix(agc): sample multisampled colour targets in a same-size format #18652
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18652"
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 DealPotato on 2026-11-12T00:01:24Z.
What
A compute shader of WWE 2K26 (PPSA34299) reads its 4x B10G11R11 colour target as R32_UINT. A multisampled target sampled in another format of the same texel size is now copied, per use, into a multisampled image of that format, when the device can sample one; the copy image is kept with the target and released with it.
Tested
Windows 11 Pro (build 26300), NVIDIA GeForce RTX 4070, driver 610.88. Focused tests run with
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1andctest -Vonmain(3a0a54bbd8) and on this change, from one build directory; the loader inserted the validation layer in both runs.Passed on
main(without the new case) and on the change:agc_driver_multisample_retirement. Neither log has aVUID-message. The build also held four other fixes for the same title on other code; two of them are opened as pull requests next to this one.The new
agc_driver_multisample_retirementcase reads a 4x B10G11R11 target as R32_UINT: it gets a copy image of its own, the next read reuses it, and both are released with the target.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
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T00:36:50Z.
Review: APPROVED
Reviewed — looks good
The change copies a multisampled target into a same-size sampled format when direct sampling is unavailable, reuses that copy for repeated reads, and retains it with the target; I found no blocking defect.
What I ran
Head
3455540f174dd9e941d0ebac47a11b47a56ffb54; base80b5a5016f352cf0298bd32f16653c96007dab4a. Environment: Debian 12, Python 3.11.2, GCC 12.2.0.The PR description reports
agc_driver_multisample_retirementpassing on Windows 11 with an RTX 4070 and Vulkan validation enabled, on both main and the change. It also reports the title passing the prior failure point in a build containing this PR and four other fixes. I did not run either GPU check locally.Results
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
To get this to a good state
No follow-up is required for the reviewed head.