Skip to content

Commit

Permalink
vkd3d: Avoid assertion if attempting to render with compute shader.
Browse files Browse the repository at this point in the history
We should nop out the draw call, but it happens after this check.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
  • Loading branch information
HansKristian-Work committed Jul 11, 2024
1 parent 6d01b50 commit ebe7279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/vkd3d/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit ebe7279

Please sign in to comment.