mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
zink: don't always set VK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE_EXT with gpl
this is illegal
Fixes: 86e4fcd9a9 ("zink: add a graphics pipeline library implementation")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18729>
This commit is contained in:
parent
5c6d61635d
commit
5b1137043c
1 changed files with 1 additions and 1 deletions
|
|
@ -547,7 +547,7 @@ zink_create_gfx_pipeline_input(struct zink_screen *screen,
|
|||
unsigned state_count = 0;
|
||||
if (screen->info.have_EXT_vertex_input_dynamic_state)
|
||||
dynamicStateEnables[state_count++] = VK_DYNAMIC_STATE_VERTEX_INPUT_EXT;
|
||||
else if (state->uses_dynamic_stride)
|
||||
else if (state->uses_dynamic_stride && state->element_state->num_attribs)
|
||||
dynamicStateEnables[state_count++] = VK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE_EXT;
|
||||
dynamicStateEnables[state_count++] = VK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY;
|
||||
dynamicStateEnables[state_count++] = VK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue