radv: fix dumping compute shader on the graphics queue

The graphics pipeline can be NULL.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
Samuel Pitoiset
2018-05-24 13:09:14 +02:00
parent de06dfa9ea
commit 66e38654c9

View File

@@ -540,12 +540,15 @@ radv_dump_graphics_state(struct radv_pipeline *graphics_pipeline,
{
VkShaderStageFlagBits active_stages;
if (!graphics_pipeline)
return;
if (graphics_pipeline) {
active_stages = graphics_pipeline->active_stages;
radv_dump_pipeline_state(graphics_pipeline, active_stages, f);
}
active_stages = graphics_pipeline->active_stages;
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