diff options
| author | Danylo Piliaiev <dpiliaiev@igalia.com> | 2025-12-08 14:22:19 +0100 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2025-12-08 13:17:40 -0700 |
| commit | 54587dc9ccc739b1b2649d71de20583c3e12ddcb (patch) | |
| tree | 9160cb5bf9e2e614c5da77aa419d13e3da8c3c82 | |
| parent | 8542e6dcfc6daef20d561220f1d91a02c25d95b2 (diff) | |
| download | usermoji-54587dc9ccc739b1b2649d71de20583c3e12ddcb.tar.xz | |
vulkaninfo: Fix running under RenderDoc
RenderDoc allows only one simultaneously existing logical device, and
vulkaninfo doesn't have a real need to keep them simultaneously alive.
Running vulkaninfo under RenderDoc is useful to get a Vulkan profile
that will represent the RenderDoc capabilities on the current GPU,
which can be useful to, e.g., make a gfxreconstruct trace that will be
later capturable by RenderDoc.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
| -rw-r--r-- | vulkaninfo/vulkaninfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vulkaninfo/vulkaninfo.h b/vulkaninfo/vulkaninfo.h index eaf4331a..217c1337 100644 --- a/vulkaninfo/vulkaninfo.h +++ b/vulkaninfo/vulkaninfo.h @@ -1814,6 +1814,9 @@ struct AppGpu { // Video // video_profiles = enumerate_supported_video_profiles(*this); + + vkDestroyDevice(dev, nullptr); + dev = VK_NULL_HANDLE; } ~AppGpu() { vkDestroyDevice(dev, nullptr); } |
