fix(agc): ignore the reserved DB_RENDER_CONTROL bits #16058
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16058"
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 stuart-russell on 2026-11-05T13:44:42Z.
What
DB_RENDER_CONTROLbits 14 to 31 are reserved and read as zero on the hardware. The maintenance check compared the register against~0x2fe3, so any reserved bit looked like a depth copy, resummarize or decompress request and the draw was rejected.The check now compares against the four maintenance bits only (
0x101c, withRESUMMARIZE_ENABLEhandled separately by the pass-through rule), so reserved bits are ignored as the hardware does, and a maintenance bit beside them is still reported.Split from #10420; independent of the other pieces.
References
Bits 14 to 31 of
DB_RENDER_CONTROLare reserved; the functional bits are the Z and stencil clear enables, the copy/resummarize/decompress requests, the copy sample selection and the copy destination.Tested
agc_driver_pm4(18 tests) andagc_driver_graphicspass, andtools/check_conventions.py --base origin/mainpasses, ond23df92b38. New checks:0x4000,0x80000000and0xffffc000decode clean, and each with a maintenance bit added is still reported asDB_RENDER_CONTROLmaintenance.ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R 'agc_driver_(pm4|graphics)' -Vpasses with noVUID-lines and without the "was not found but was requested by env var VK_INSTANCE_LAYERS" message. This machine has no Vulkan device, so that run covers the decode path only.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)