Skip to content

Commit

Permalink
frog: Hack for debugging UAV clear -> compute.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKristian-Work committed Aug 28, 2024
1 parent 9baa0a6 commit 937914f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions libs/vkd3d/breadcrumbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,27 @@ void d3d12_command_list_debug_mark_execution(struct d3d12_command_list *list, Vk
(list->cmd.stages_synced & (VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT | VK_PIPELINE_STAGE_2_DRAW_INDIRECT_BIT)) ==
list->cmd.stages_synced;

if (list->state)
{
if ((list->cmd.stages_pending_execution & VK_PIPELINE_STAGE_2_CLEAR_BIT) &&
(stages & VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT))
{
INFO("Potential UAV clear -> compute hazard for #%"PRIx64" (%s).\n",
list->state->compute.code.meta.hash,
list->state->compute.code_debug.debug_entry_point_name ?
list->state->compute.code_debug.debug_entry_point_name : "N/A");
}
#if 0
else if ((list->cmd.stages_pending_execution & VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT) &&
(stages & VK_PIPELINE_STAGE_2_CLEAR_BIT))
{
INFO("Potential compute -> UAV clear hazard for #%"PRIx64" (%s).\n", list->state->compute.code.meta.hash,
list->state->compute.code_debug.debug_entry_point_name ?
list->state->compute.code_debug.debug_entry_point_name : "N/A");
}
#endif
}

if (!assume_synchronized)
{
if (list->cmd.stages_pending_execution != 0)
Expand Down

0 comments on commit 937914f

Please sign in to comment.