From ebe7279e7960d204f5b1bd3d89408929140cdd0f Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Thu, 11 Jul 2024 17:54:17 +0200 Subject: [PATCH] vkd3d: Avoid assertion if attempting to render with compute shader. We should nop out the draw call, but it happens after this check. Signed-off-by: Hans-Kristian Arntzen --- libs/vkd3d/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index d5c32dc6ee..4d94d33584 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -6763,7 +6763,7 @@ static void d3d12_command_list_promote_dsv_layout(struct d3d12_command_list *lis * read-state shenanigans. If we cannot promote yet, the pipeline will override dsv_layout as required * by write enable bits. */ if (list->dsv_layout == VK_IMAGE_LAYOUT_UNDEFINED && - list->state && + d3d12_pipeline_state_is_graphics(list->state) && d3d12_command_list_has_depth_stencil_view(list) && list->dsv.resource) {