fix(agc): reject depth maintenance before shader compilation #1371
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1371"
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 TibixDev on 2026-10-08T00:39:08Z.
What
Reject unsupported depth-copy, resummarize, and decompress modes before shader compilation. Apply the check before the no-pixel-shader no-op path, even when general draw prechecks are disabled. The state decoder uses the same check.
The register mask follows
DB_RENDER_CONTROLin AMD GFX10.3 register definitions. This rejects unsupported work; it does not implement these modes. #1139 changes whether a pixel stage runs and does not add this check.Tested
Fedora 44 Release: graphics, driver, and PM4 tests pass. New cases cover maintenance with depth tests and color writes disabled, maintenance combined with clear bits, ordinary controls, and absent state. No game or Windows test. Contribution checks pass.
Checklist
main; related work compared above.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T12:36:58Z.
Checked on current
main: build + ctest 450/450 (agc_driver_graphicspasses), CI green on the head. The mask0x2063matchesDB_RENDER_CONTROLingc_10_3_0_sh_mask.h(v6.18): clear bits, the two compress-disable bits andPS_INVOKE_DISABLEpass; copy, resummarize, centroid/sample and decompress are rejected, consistent with the existing rule indecodeDepth. The new test needsDepthMaintenanceRejection, so it can't pass onmain. Merging.