mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
tu: Fix SP_GS_PRIM_SIZE for large sizes
Based on the previous commit.
Fixes: 012773b ("turnip: Configure VPC for geometry shaders")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10551>
This commit is contained in:
parent
e7b7908f87
commit
3d5c1c4989
1 changed files with 6 additions and 1 deletions
|
|
@ -1136,8 +1136,13 @@ tu6_emit_vpc(struct tu_cs *cs,
|
|||
tu_cs_emit_pkt4(cs, REG_A6XX_PC_PRIMITIVE_CNTL_6, 1);
|
||||
tu_cs_emit(cs, A6XX_PC_PRIMITIVE_CNTL_6_STRIDE_IN_VPC(vec4_size));
|
||||
|
||||
uint32_t prim_size = prev_stage_output_size;
|
||||
if (prim_size > 64)
|
||||
prim_size = 64;
|
||||
else if (prim_size == 64)
|
||||
prim_size = 63;
|
||||
tu_cs_emit_pkt4(cs, REG_A6XX_SP_GS_PRIM_SIZE, 1);
|
||||
tu_cs_emit(cs, prev_stage_output_size);
|
||||
tu_cs_emit(cs, prim_size);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue