From 551d7fddfba1c88cde64e72b12013c9861712f29 Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Wed, 2 Jun 2021 14:15:46 +0300 Subject: [PATCH] turnip: emit vb stride dynamic state when it is dirty MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Due to incorrect condition we never emitted vb stride if state was dynamically set. Fixes vertex explosion with Zink. See https://gitlab.freedesktop.org/mesa/mesa/-/issues/4738 Signed-off-by: Danylo Piliaiev Reviewed-by: Samuel Iglesias Gonsálvez Part-of: --- src/freedreno/vulkan/tu_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index d3592a2..fd7ea6d 100644 --- a/src/freedreno/vulkan/tu_cmd_buffer.c +++ b/src/freedreno/vulkan/tu_cmd_buffer.c @@ -3738,7 +3738,7 @@ tu6_draw_common(struct tu_cmd_buffer *cmd, 1; /* vs_params */ if ((cmd->state.dirty & TU_CMD_DIRTY_VB_STRIDE) && - !(pipeline->dynamic_state_mask & BIT(TU_DYNAMIC_STATE_VB_STRIDE))) { + (pipeline->dynamic_state_mask & BIT(TU_DYNAMIC_STATE_VB_STRIDE))) { emit_binding_stride = true; draw_state_count += 1; } -- 2.7.4