-
Notifications
You must be signed in to change notification settings - Fork 188
vulkaninfo: Fix running under RenderDoc #1185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vulkaninfo: Fix running under RenderDoc #1185
Conversation
|
Author werman not on autobuild list. Waiting for curator authorization before starting CI build. |
1 similar comment
|
Author werman not on autobuild list. Waiting for curator authorization before starting CI build. |
charles-lunarg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion, but can we leave the VkDevice object at the parent scope so that if an exception is thrown, the AppGpu can clean up the created VkDevice handle.
This means that the commit is adding vkDestroyDevice(dev, nullptr); dev = VK_NULL_HANDLE; at the end of the constructor, then in the destructor only destroying the device if the handle isn't NULL.
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 <[email protected]>
eb6cd49 to
b6abaf7
Compare
Makes sense, done. |
charles-lunarg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
|
CI Vulkan-Tools build queued with queue ID 596382. |
|
CI Vulkan-Tools build # 1880 running. |
|
CI Vulkan-Tools build # 1880 passed. |
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.
With the change
ENABLE_VULKAN_RENDERDOC_CAPTURE=1 vulkaninfocrashes with: