mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
lavapipe: fix dynamic patchControlPoints
the dynamic state value is independent of whether tesselation is used cc: mesa-stable Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16824>
This commit is contained in:
parent
df2dd474c7
commit
fc5a3e1e37
1 changed files with 5 additions and 4 deletions
|
|
@ -898,13 +898,14 @@ static void handle_graphics_pipeline(struct vk_cmd_queue_entry *cmd,
|
|||
state->info.primitive_restart = ia->primitiveRestartEnable;
|
||||
}
|
||||
|
||||
if (pipeline->graphics_create_info.pTessellationState) {
|
||||
if (!dynamic_states[conv_dynamic_state_idx(VK_DYNAMIC_STATE_PATCH_CONTROL_POINTS_EXT)]) {
|
||||
if (!dynamic_states[conv_dynamic_state_idx(VK_DYNAMIC_STATE_PATCH_CONTROL_POINTS_EXT)]) {
|
||||
if (pipeline->graphics_create_info.pTessellationState) {
|
||||
const VkPipelineTessellationStateCreateInfo *ts = pipeline->graphics_create_info.pTessellationState;
|
||||
state->patch_vertices = ts->patchControlPoints;
|
||||
} else {
|
||||
state->patch_vertices = 0;
|
||||
}
|
||||
} else
|
||||
state->patch_vertices = 0;
|
||||
}
|
||||
|
||||
bool halfz_changed = false;
|
||||
if (!pipeline->negative_one_to_one != clip_halfz) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue