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 <philip.rebohle@tu-dortmund.de>
This commit is contained in:
Philip Rebohle 2020-11-06 16:20:30 +01:00 committed by Hans-Kristian Arntzen
parent 58548a3db2
commit 432ba00e3c
1 changed files with 2 additions and 1 deletions

View File

@ -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);