mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
tu: tu: Clear patchControlPoints dirty state with static patchControlPoints
Noticed by inspection after the previous issue.
Fixes: 68f3c38c80 ("tu: Implement extendedDynamicState2PatchControlPoints")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18912>
This commit is contained in:
parent
9f7896685f
commit
4466f9aa02
1 changed files with 4 additions and 2 deletions
|
|
@ -2594,10 +2594,12 @@ tu_CmdBindPipeline(VkCommandBuffer commandBuffer,
|
|||
cmd->state.rp.has_tess = true;
|
||||
|
||||
if (!(pipeline->dynamic_state_mask &
|
||||
BIT(TU_DYNAMIC_STATE_PATCH_CONTROL_POINTS)))
|
||||
BIT(TU_DYNAMIC_STATE_PATCH_CONTROL_POINTS))) {
|
||||
cmd->state.patch_control_points = pipeline->tess.patch_control_points;
|
||||
else
|
||||
cmd->state.dirty &= ~TU_CMD_DIRTY_PATCH_CONTROL_POINTS;
|
||||
} else {
|
||||
cmd->state.dirty |= TU_CMD_DIRTY_PATCH_CONTROL_POINTS;
|
||||
}
|
||||
}
|
||||
|
||||
cmd->state.line_mode = pipeline->rast.line_mode;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue