From: Jason Ekstrand Date: Tue, 26 May 2015 00:08:11 +0000 (-0700) Subject: vk/cmd_buffer: Initialize the pipeline pointer to NULL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae8c93e023941c1b7622893b4f609c47585ca776;p=mesa.git 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. --- 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;