mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
7ff9e4907f
fix(gpu): drop colorWriteEnable dynamic state on depth-only pipelines Pipelines were created with VK_DYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT unconditionally on non-Apple platforms, but the draw path only calls vkCmdSetColorWriteEnableEXT when there is at least one color attachment. A depth-only draw therefore reached vkCmdDrawIndexed with the dynamic state declared and never set, which violates VUID-vkCmdDrawIndexed-None-07749. With validation enabled the error is fatal, so any title that issues a depth-only pass aborts. The launcher enables validation by default (vulkan_validation_enabled = true), so this is the default configuration: PAC-MAN WORLD Re-PAC crashes from the launcher while the same build runs normally with --vulkan-validation false. Gate the declaration on the same color_count the draw path uses. Both sides read state.color_count from the same draw, so the two conditions are now identical by construction.