From: Mike Blumenkrantz Date: Wed, 21 Sep 2022 13:21:42 +0000 (-0400) Subject: zink: don't always set VK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE_EXT with gpl X-Git-Tag: upstream/22.3.5~2616 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b1137043c273dbb0bc3402c75c4c59e36d7543d;p=platform%2Fupstream%2Fmesa.git zink: don't always set VK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE_EXT with gpl this is illegal Fixes: 86e4fcd9a92 ("zink: add a graphics pipeline library implementation") Reviewed-by: Dave Airlie Part-of: --- diff --git a/src/gallium/drivers/zink/zink_pipeline.c b/src/gallium/drivers/zink/zink_pipeline.c index 2872c18..ece07be 100644 --- a/src/gallium/drivers/zink/zink_pipeline.c +++ b/src/gallium/drivers/zink/zink_pipeline.c @@ -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;