Skip to content

Commit 937914f

Browse files
frog: Hack for debugging UAV clear -> compute.
1 parent 9baa0a6 commit 937914f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

libs/vkd3d/breadcrumbs.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,27 @@ void d3d12_command_list_debug_mark_execution(struct d3d12_command_list *list, Vk
969969
(list->cmd.stages_synced & (VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT | VK_PIPELINE_STAGE_2_DRAW_INDIRECT_BIT)) ==
970970
list->cmd.stages_synced;
971971

972+
if (list->state)
973+
{
974+
if ((list->cmd.stages_pending_execution & VK_PIPELINE_STAGE_2_CLEAR_BIT) &&
975+
(stages & VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT))
976+
{
977+
INFO("Potential UAV clear -> compute hazard for #%"PRIx64" (%s).\n",
978+
list->state->compute.code.meta.hash,
979+
list->state->compute.code_debug.debug_entry_point_name ?
980+
list->state->compute.code_debug.debug_entry_point_name : "N/A");
981+
}
982+
#if 0
983+
else if ((list->cmd.stages_pending_execution & VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT) &&
984+
(stages & VK_PIPELINE_STAGE_2_CLEAR_BIT))
985+
{
986+
INFO("Potential compute -> UAV clear hazard for #%"PRIx64" (%s).\n", list->state->compute.code.meta.hash,
987+
list->state->compute.code_debug.debug_entry_point_name ?
988+
list->state->compute.code_debug.debug_entry_point_name : "N/A");
989+
}
990+
#endif
991+
}
992+
972993
if (!assume_synchronized)
973994
{
974995
if (list->cmd.stages_pending_execution != 0)

0 commit comments

Comments
 (0)