From 12fded59650c26ae831663568e3d2981f5195b7f Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 20 Oct 2022 13:00:06 -0400 Subject: [PATCH] zink: fix duplicate VK_DYNAMIC_STATE_LINE_STIPPLE_EXT setting if ds3 is used, this is already set above Part-of: --- src/gallium/drivers/zink/zink_pipeline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_pipeline.c b/src/gallium/drivers/zink/zink_pipeline.c index d76dcb7c3d9..7fad77ae06e 100644 --- a/src/gallium/drivers/zink/zink_pipeline.c +++ b/src/gallium/drivers/zink/zink_pipeline.c @@ -321,7 +321,8 @@ zink_create_gfx_pipeline(struct zink_screen *screen, } if (hw_rast_state->line_stipple_enable) { - dynamicStateEnables[state_count++] = VK_DYNAMIC_STATE_LINE_STIPPLE_EXT; + if (!screen->info.have_EXT_extended_dynamic_state3) + dynamicStateEnables[state_count++] = VK_DYNAMIC_STATE_LINE_STIPPLE_EXT; rast_line_state.stippledLineEnable = VK_TRUE; }