tu: Set polygon mode when blitting

Noticed by inspection.

Cc: mesa-stable
(cherry picked from commit 1d167ffe77)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40359>
This commit is contained in:
Connor Abbott 2026-02-06 16:56:32 -05:00 committed by Eric Engestrom
parent b88c8f37e4
commit 9a361c3801
2 changed files with 14 additions and 1 deletions

View file

@ -1924,7 +1924,7 @@
"description": "tu: Set polygon mode when blitting",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -920,6 +920,19 @@ r3d_common(struct tu_cmd_buffer *cmd, struct tu_cs *cs, enum r3d_type type,
.persp_division_disable = 1,));
tu_cs_emit_regs(cs, GRAS_SU_CNTL(CHIP)); // XXX msaa enable?
tu_cs_emit_regs(cs, VPC_RAST_CNTL(CHIP, POLYMODE6_TRIANGLES));
tu_cs_emit_regs(cs,
PC_DGEN_RAST_CNTL(CHIP, POLYMODE6_TRIANGLES));
if (CHIP >= A8XX)
tu_cs_emit_regs(cs, GRAS_RAST_CNTL(CHIP, POLYMODE6_TRIANGLES));
if (CHIP >= A7XX || cs->device->physical_device->info->props.is_a702) {
tu_cs_emit_regs(cs, VPC_PS_RAST_CNTL(CHIP, POLYMODE6_TRIANGLES));
}
if (CHIP >= A8XX) {
tu_cs_emit_regs(cs, GRAS_SU_STEREO_CNTL(CHIP));
}