Warn if incompatible DSV pipelines are found.

This commit is contained in:
Hans-Kristian Arntzen 2019-10-03 15:06:47 +02:00
parent 0c91e37398
commit 99adad50ea
1 changed files with 8 additions and 3 deletions

View File

@ -2490,9 +2490,14 @@ static bool d3d12_command_list_update_current_pipeline(struct d3d12_command_list
vk_render_pass = list->state->u.graphics.static_render_pass;
assert(vk_render_pass);
}
else if (!(vk_pipeline = d3d12_pipeline_state_get_or_create_pipeline(list->state,
list->primitive_topology, list->strides, list->dsv_format, &vk_render_pass)))
return false;
else
{
WARN("DSV format 0x%x does not match PipelineState DSV format 0x%x. Looking up pipeline late.\n",
(unsigned)list->dsv_format, (unsigned)list->state->u.graphics.dsv_format);
if (!(vk_pipeline = d3d12_pipeline_state_get_or_create_pipeline(list->state,
list->primitive_topology, list->strides, list->dsv_format, &vk_render_pass)))
return false;
}
/* The render pass cache ensures that we use the same Vulkan render pass
* object for compatible render passes. */