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:
parent
58548a3db2
commit
432ba00e3c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue