fix(agc): leave blending off for a color target with CB_COLOR_INFO.BLEND_BYPASS #4862
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4862"
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 Tamalero on 2026-10-13T00:29:09Z.
What
DecodeStatethrowsblend bypass conflicts with enabled blendingwhenCB_BLENDn_CONTROLenables blending for a target whoseCB_COLORn_INFOhasBLEND_BYPASSset. That is bit 16 in Mesa'ssrc/amd/registers/gfx10.json.The bit makes the color block skip the blender for that target. Mesa sets it "according to docs" for UINT/SINT and 8_24/24_8/X24_8_32_FLOAT targets, which the blender cannot process (
src/amd/common/ac_descriptors.c, shared by radeonsi and RADV). So a set bit with blending enabled is a valid state, not a conflict: the target is written unblended.Blending is now enabled only when it is requested and not bypassed.
Tested
Linux (CachyOS), GCC 16, RTX 4090, Release, on
main1c5e62878:agc_driver_graphics: the newBlendBypassTestscheck that blending stays off for a bypassed target with blending enabled, and stays on for an identical target without the bit. Withmain'sState.cppthe test fails withblend bypass conflicts with enabled blending; with the change it passes.tools/check_conventions.py --base origin/main: passes.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)Tested and written by Claude (AI assistant) on a contributor's machine.
🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by kr4y4 on 2026-10-13T03:08:20Z.
A Windows and Intel run, since the description covers Linux on an RTX 4090.
Setup: Windows 11 (26200), WinLibs GCC 15.2.0 r7, Release, CI configure flags, an RTX 4070 Laptop GPU and an Intel Raptor Lake-S iGPU. The head
baaad78e8merged intomain495bf91a0, which passes 1023 of 1023 on both GPUs.agc_driver_graphicspasses on both GPUs with--repeat until-fail:3. The full suite (ctest --timeout 120 --parallel 4) passes 1023 of 1023 on both.State.cppas onmain,agc_driver_graphicsfails on both GPUs withblend bypass conflicts with enabled blending, as in the description.Written with AI assistance.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T16:34:22Z.
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.
main)core/libs/prx/libSceAgcDriver/Graphics/src/State.cppL896-897, L900-917