From ae8c93e023941c1b7622893b4f609c47585ca776 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 25 May 2015 17:08:11 -0700 Subject: [PATCH] vk/cmd_buffer: Initialize the pipeline pointer to NULL If a meta operation is called before the pipeline is set, this can cause uses of undefined values. They *should* be harmless, but we might as well shut up valgrind on this one too. --- src/vulkan/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 066d63598a6..5d37ce8b3be 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -2178,6 +2178,7 @@ VkResult anv_CreateCommandBuffer( cmd_buffer->dirty = 0; cmd_buffer->vb_dirty = 0; + cmd_buffer->pipeline = NULL; *pCmdBuffer = (VkCmdBuffer) cmd_buffer; -- 2.30.2