Skip to content

Commit 582c24e

Browse files
vkd3d: Remember to update imageLayout when fusing clears.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
1 parent 1dc6578 commit 582c24e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/vkd3d/command.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5310,6 +5310,9 @@ static void d3d12_command_list_fuse_attachment_clear(struct d3d12_command_list *
53105310
list->dsv_plane_optimal_mask |= plane_write_mask;
53115311
list->dsv_layout = dsv_plane_optimal_mask_to_layout(list->dsv_plane_optimal_mask, resource->format->vk_aspect_mask);
53125312

5313+
attachment->imageLayout = list->dsv_layout;
5314+
stencil_attachment->imageLayout = list->dsv_layout;
5315+
53135316
/* We need to ensure that we transition to the same layout that the render pass transition
53145317
* will use as a source layout when transitioning to dsv_layout.
53155318
*

0 commit comments

Comments
 (0)