anv/meta: Initialize a handle to null
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 18 Jan 2016 21:05:02 +0000 (13:05 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 18 Jan 2016 21:05:02 +0000 (13:05 -0800)
src/vulkan/anv_meta_clear.c

index 34087804075edbccf38d7e8d192e0467a8c59d9a..a033f92773e58e1f0329998f5d6515268ece6425 100644 (file)
@@ -133,7 +133,7 @@ create_pipeline(struct anv_device *device,
    struct anv_shader_module vs_m = { .nir = vs_nir };
    struct anv_shader_module fs_m = { .nir = fs_nir };
 
-   VkPipeline pipeline_h;
+   VkPipeline pipeline_h = VK_NULL_HANDLE;
    result = anv_graphics_pipeline_create(device_h,
       VK_NULL_HANDLE,
       &(VkGraphicsPipelineCreateInfo) {