Module: vkd3d
Branch: master
Commit: 54dcb2901b01ff6e258fc51ea8f48aec4e81b6bb
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=54dcb2901b01ff6e258fc51…
Author: Józef Kucia <jkucia(a)codeweavers.com>
Date: Wed May 15 13:17:54 2019 +0200
vkd3d: Update current framebuffer before pipeline.
Framebuffers are created with a render pass from the graphics pipeline.
In the next commits, we defer the creation of render passes for graphics
pipelines with invalid DSV formats.
Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
libs/vkd3d/command.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index e4221c9..8c7057b 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -2787,10 +2787,10 @@ static bool d3d12_command_list_begin_render_pass(struct d3d12_command_list *list
return false;
}
- if (!d3d12_command_list_update_current_framebuffer(list))
- return false;
if (!d3d12_command_list_update_current_pipeline(list))
return false;
+ if (!d3d12_command_list_update_current_framebuffer(list))
+ return false;
d3d12_command_list_update_descriptors(list, VK_PIPELINE_BIND_POINT_GRAPHICS);