From 432ba00e3c848d840010fa30997693dd9d7e5a6d Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Fri, 6 Nov 2020 16:20:30 +0100 Subject: [PATCH] vkd3d: Only care about DSV mismatch if pipeline actually uses it. Avoids some unnecessary late compiles in Monster Hunter World. Signed-off-by: Philip Rebohle --- libs/vkd3d/state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/vkd3d/state.c b/libs/vkd3d/state.c index d12d7619..37f520cd 100644 --- a/libs/vkd3d/state.c +++ b/libs/vkd3d/state.c @@ -3241,7 +3241,8 @@ VkPipeline d3d12_pipeline_state_get_pipeline(struct d3d12_pipeline_state *state, return VK_NULL_HANDLE; /* Unknown DSV format workaround. */ - if (dsv_format != graphics->dsv_format) + if ((dsv_format != graphics->dsv_format) && (graphics->dsv_format != VK_FORMAT_UNDEFINED || + state->graphics.ds_desc.depthTestEnable || state->graphics.ds_desc.stencilTestEnable)) { TRACE("DSV format mismatch, expected %u, got %u, buggy application!\n", graphics->dsv_format, dsv_format);