diff options
author | Samuel Pitoiset <[email protected]> | 2018-05-24 13:09:14 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-05-25 11:58:07 +0200 |
commit | 66e38654c9fef548b9f5a77f0d376aea57b89b50 (patch) | |
tree | 4fe5da8ca632e2b7cab09b3b4ab016b1f4d5f089 /src/amd/vulkan/radv_debug.c | |
parent | de06dfa9ea05ab5d06efb20223a858eb42d02683 (diff) |
radv: fix dumping compute shader on the graphics queue
The graphics pipeline can be NULL.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_debug.c')
-rw-r--r-- | src/amd/vulkan/radv_debug.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c index c84e3be25bb..5a9b43644ed 100644 --- a/src/amd/vulkan/radv_debug.c +++ b/src/amd/vulkan/radv_debug.c @@ -540,12 +540,15 @@ radv_dump_graphics_state(struct radv_pipeline *graphics_pipeline, { VkShaderStageFlagBits active_stages; - if (!graphics_pipeline) - return; - - active_stages = graphics_pipeline->active_stages; + if (graphics_pipeline) { + active_stages = graphics_pipeline->active_stages; + radv_dump_pipeline_state(graphics_pipeline, active_stages, f); + } - radv_dump_pipeline_state(graphics_pipeline, active_stages, f); + if (compute_pipeline) { + active_stages = VK_SHADER_STAGE_COMPUTE_BIT; + radv_dump_pipeline_state(compute_pipeline, active_stages, f); + } } static void |