mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 18:40:13 +01:00
turnip: assert valid vertex_flag reg
If this somehow gets optimized out, the GS will run forever. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17341>
This commit is contained in:
parent
e16c46c6a8
commit
62c5d428bc
1 changed files with 4 additions and 0 deletions
|
|
@ -1161,6 +1161,10 @@ tu6_emit_vpc(struct tu_cs *cs,
|
|||
}
|
||||
}
|
||||
|
||||
/* if vertex_flags somehow gets optimized out, your gonna have a bad time: */
|
||||
if (gs)
|
||||
assert(flags_regid != INVALID_REG);
|
||||
|
||||
tu_cs_emit_pkt4(cs, cfg->reg_sp_xs_primitive_cntl, 1);
|
||||
tu_cs_emit(cs, A6XX_SP_VS_PRIMITIVE_CNTL_OUT(linkage.cnt) |
|
||||
A6XX_SP_GS_PRIMITIVE_CNTL_FLAGS_REGID(flags_regid));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue