zink: fix duplicate VK_DYNAMIC_STATE_LINE_STIPPLE_EXT setting
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 20 Oct 2022 17:00:06 +0000 (13:00 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 21 Oct 2022 21:27:13 +0000 (21:27 +0000)
if ds3 is used, this is already set above

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19204>

src/gallium/drivers/zink/zink_pipeline.c

index d76dcb7..7fad77a 100644 (file)
@@ -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;
       }