AGC: a rect-list draw whose vertex count is not a multiple of 3 aborts with "incomplete rect-list primitive" (Palworld, PPSA23126) #3832
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 queeeef on 2026-10-11T17:19:43Z.
Palworld (PPSA23126, 01.102.999): a rect-list draw of 4 vertices aborts with
incomplete rect-list primitiveWhen character creation opens (after "Finish setting up world and start the game? → Yes"), presentation fails and the title terminates:
The check is
Draw.cppprepareDrawInputs:if (state.rectList) Require(draw.indexCount % 3 == 0, "incomplete rect-list primitive");.The draw (local diagnostic that prints the parameters before the throw,
917fd308):A direct, non-indexed draw of 4 vertices × 9 instances (10 instances on another run), rect-list topology, into a 2048x2048 color target.
What the host already does without the check. Rect lists are recorded as
VK_PRIMITIVE_TOPOLOGY_PATCH_LISTwith 3 control points, and Vulkan generates ⌊vertexCount/3⌋ patches, so the trailing vertex forms no rectangle. The three draw forms reach the same rule:vkCmdDrawwith the count;vkCmdDrawIndexedon the same patch list, ⌊indexCount/3⌋ patches;ClassifyIndirectDrawsends every rect-list indirect draw to the CPU path (NonVertexPath); each record becomes a directPm4::DrawParametersand goes through the sameprepareDrawInputscheck.Hardware. Not measured. The hardware oracle (
tools/hw-oracle) runs compute kernels on Linux with an AMD GPU, so it cannot observe primitive assembly, and I have no AMD GPU here. I found no public statement for gfx10 rect lists. A retail title issuing this draw shows that the console accepts it; it does not show what the console rasterizes for the leftover vertex.Local check: dropping the vertices past the last complete rectangle gets the title past this point: character creation renders and the title runs on to a later, unrelated stop (reported in #2648).
Fix: #3835.
Setup
maina11c8f7f7plus the open PRs Palworld needs to get this far:palworld/integration(#3461 branch, #3739, #3633, #1077, #2904, #425, #3546 and local workarounds listed in #2648)--windows --to-intel --registryNo game files are shared, only log lines and draw parameters. AI-assisted (Claude Code).