fix(agc): skip an indexed draw with no indices or instances #5205
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5205"
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 mrfelek on 2026-10-13T14:35:46Z.
What
A direct indexed draw with zero indices or zero instances threw
zero-count indexed draws are unsupported. The auto (non-indexed) path already records nothing for such a draw. The indexed path now does the same: the draw has nothing to rasterize, so no work is recorded. Indirect draws are unchanged.New case in
agc_driver_graphics_tests: an indexed draw with zero indices and one with zero instances are skipped. The zero-index case fails without the change with "an indexed draw without indices was not skipped".Tested
Ubuntu 26.10, GCC 15.3.0, RTX 3080 Ti (NVIDIA 615.71.09), Release, on main
146f17154.agc_driver_graphics_testspasses; fails without the change.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repository