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:

committed by
Marge Bot

parent
5c6d61635d
commit
5b1137043c
@@ -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;
|
||||
|
Reference in New Issue
Block a user