From 378974588e59160faed9bbb2f97303cad451186e Mon Sep 17 00:00:00 2001 From: squidbus Date: Wed, 22 Apr 2026 18:22:23 -0700 Subject: [PATCH] kk: Update dynamic depth stencil state regardless of set attachments. Even if the attachments are not defined, we still need to update the state to reflect changes like depth test being turned off, etc. The state compile itself will take into account which attachments are set and appropriately configure the Metal depth-stencil state. Reviewed-by: Aitor Camacho Part-of: --- src/kosmickrisp/vulkan/kk_cmd_draw.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/kosmickrisp/vulkan/kk_cmd_draw.c b/src/kosmickrisp/vulkan/kk_cmd_draw.c index c9990aea44e..a7d26c8370f 100644 --- a/src/kosmickrisp/vulkan/kk_cmd_draw.c +++ b/src/kosmickrisp/vulkan/kk_cmd_draw.c @@ -660,8 +660,6 @@ kk_flush_pipeline(struct kk_cmd_buffer *cmd) /* Depth/stencil state may be dynamic, handle it as part of the pipeline. */ if (cmd->state.gfx.is_depth_stencil_dynamic && - (cmd->state.gfx.render.depth_att.vk_format != VK_FORMAT_UNDEFINED || - cmd->state.gfx.render.stencil_att.vk_format != VK_FORMAT_UNDEFINED) && (IS_DIRTY(DS_DEPTH_TEST_ENABLE) | IS_DIRTY(DS_DEPTH_WRITE_ENABLE) | IS_DIRTY(DS_DEPTH_COMPARE_OP) | IS_DIRTY(DS_STENCIL_TEST_ENABLE) | IS_DIRTY(DS_STENCIL_OP) | IS_DIRTY(DS_STENCIL_COMPARE_MASK) |