radv: add missing initializations since VK_EXT_pipeline_creation_feedback
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 21 Mar 2019 07:59:54 +0000 (08:59 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 21 Mar 2019 08:42:31 +0000 (09:42 +0100)
This fixes the world.

Fixes: 5f5ac19f138 ("radv: Implement VK_EXT_pipeline_creation_feedback.")"
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_pipeline.c

index 91537db1ac5cbb84f96de2e78a327c8ddd345f5f..83a06226adaba5a78badd1343af8442b9dcf04d2 100644 (file)
@@ -3669,7 +3669,7 @@ radv_pipeline_init(struct radv_pipeline *pipeline,
        VkPipelineCreationFeedbackEXT *pipeline_feedback = creation_feedback ? creation_feedback->pPipelineCreationFeedback : NULL;
 
        const VkPipelineShaderStageCreateInfo *pStages[MESA_SHADER_STAGES] = { 0, };
-       VkPipelineCreationFeedbackEXT *stage_feedbacks[MESA_SHADER_STAGES];
+       VkPipelineCreationFeedbackEXT *stage_feedbacks[MESA_SHADER_STAGES] = { 0 };
        for (uint32_t i = 0; i < pCreateInfo->stageCount; i++) {
                gl_shader_stage stage = ffs(pCreateInfo->pStages[i].stage) - 1;
                pStages[stage] = &pCreateInfo->pStages[i];
@@ -3901,7 +3901,7 @@ static VkResult radv_compute_pipeline_create(
        RADV_FROM_HANDLE(radv_device, device, _device);
        RADV_FROM_HANDLE(radv_pipeline_cache, cache, _cache);
        const VkPipelineShaderStageCreateInfo *pStages[MESA_SHADER_STAGES] = { 0, };
-       VkPipelineCreationFeedbackEXT *stage_feedbacks[MESA_SHADER_STAGES];
+       VkPipelineCreationFeedbackEXT *stage_feedbacks[MESA_SHADER_STAGES] = { 0 };
        struct radv_pipeline *pipeline;
        VkResult result;