vkd3d: Always return render pass from d3d12_pipeline_state_get_or_create_pipeline().

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia
2019-05-21 10:57:22 +02:00
committed by Alexandre Julliard
parent 725c4eb809
commit 3e99853297
2 changed files with 6 additions and 10 deletions

View File

@@ -2431,9 +2431,6 @@ static bool d3d12_command_list_update_current_pipeline(struct d3d12_command_list
list->primitive_topology, list->strides, list->dsv_format, &vk_render_pass)))
return false;
if (!vk_render_pass)
vk_render_pass = list->state->u.graphics.render_pass;
/* The render pass cache ensures that we use the same Vulkan render pass
* object for compatible render passes. */
if (list->pso_render_pass != vk_render_pass)