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.
This commit is contained in:
Jason Ekstrand
2015-05-25 17:08:11 -07:00
parent 912944e59d
commit ae8c93e023

View File

@@ -2178,6 +2178,7 @@ VkResult anv_CreateCommandBuffer(
cmd_buffer->dirty = 0;
cmd_buffer->vb_dirty = 0;
cmd_buffer->pipeline = NULL;
*pCmdBuffer = (VkCmdBuffer) cmd_buffer;