Skip to content

Commit

Permalink
debug: Kick the QA checker when device lost is observed.
Browse files Browse the repository at this point in the history
Signed-off-by: Hans-Kristian Arntzen <[email protected]>
  • Loading branch information
HansKristian-Work committed Jan 27, 2025
1 parent 0a80780 commit e2f3432
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/vkd3d/breadcrumbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "vkd3d_common.h"
#include <assert.h>
#include <stdio.h>
#include "vkd3d_descriptor_debug.h"

/* Just allocate everything up front. This only consumes host memory anyways. */
#define MAX_COMMAND_LISTS (32 * 1024)
Expand Down Expand Up @@ -593,6 +594,9 @@ void vkd3d_breadcrumb_tracer_report_device_lost(struct vkd3d_breadcrumb_tracer *
VkQueue vk_queue;
unsigned int i;

/* There may be latent information in the QA checker. */
vkd3d_descriptor_debug_kick_qa_check(device->descriptor_qa_global_info);

/* Avoid interleaved logs when multiple threads observe device lost. */
pthread_mutex_lock(&global_report_lock);
ERR("Device lost observed, analyzing breadcrumbs ...\n");
Expand Down

0 comments on commit e2f3432

Please sign in to comment.