feat(agc): accept linear attribute clipping in PA_CL_CLIP_CNTL #678
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/678"
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 Celegans12 on 2026-10-05T14:57:03Z.
What
DecodeStateand the draw precheck refused PA_CL_CLIP_CNTL bit 24 (DX_LINEAR_ATTR_CLIP_ENA), so every draw that sets it was skipped withunsupported PA_CL_CLIP_CNTL flags is unsupported (register 0x204 = 0x01080000).NoPerspectiveoutputs to vary linearly in framebuffer space (Clipping Shader Outputs), and AMD's conformant drivers set the bit on every draw: RADV (radv_cmd_buffer.c) and radeonsi (si_state.c). With the bit set the hardware clips as Vulkan does, which is how the host driver already clips the translated draw.CLIP_DISABLE,DX_RASTERIZATION_KILL,VTX_KILL_OR,VTE_VPORT_PROVOKE_DISABLEand every other bit outside 19, 24, 26 and 27.mainalready accepted, gets the same clipping; what it changes on the console is undocumented.0x01080000). This register is the only skipped-draw reason its runs report.Tested
mainaf92452f: configure-DBUILD_TESTING=ON, full build,--target libs,ctest:ctest --output-on-failure)agc_driver_graphics(DepthClipTests) checks PA_CL_CLIP_CNTL0x00080000,0,0x0c080000and0x04000000with bit 24 added. Each must decode like the value without it and pass the precheck. Every other single bit must still be rejected byDecodeStateand the precheck, with and without bit 24. Onmainthe test fails withregister 0x204 = 0x01080000.main, the draws it reaches are skipped on this register.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)