turnip: fix segmentation fault with compute pipeline
authorJonathan Marek <jonathan@marek.ca>
Mon, 14 Oct 2019 15:25:11 +0000 (11:25 -0400)
committerJonathan Marek <jonathan@marek.ca>
Tue, 15 Oct 2019 11:56:19 +0000 (07:56 -0400)
Not supported, so always set pointer to NULL

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/freedreno/vulkan/tu_pipeline.c

index 29f394c82f082b1d782aea6d7600f21bdae31d37..241a009040c2cbeb5ee6728a85f1bf1a912cc8a6 100644 (file)
@@ -1924,8 +1924,8 @@ tu_CreateComputePipelines(VkDevice _device,
                                      pAllocator, &pPipelines[i]);
       if (r != VK_SUCCESS) {
          result = r;
-         pPipelines[i] = VK_NULL_HANDLE;
       }
+      pPipelines[i] = VK_NULL_HANDLE;
    }
 
    return result;