From: Kristian Høgsberg Kristensen Date: Thu, 28 May 2015 04:45:23 +0000 (-0700) Subject: vk: Initialize dynamic state binding points to NULL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a317ef4cba1fbd04fe2ec446a3556de2f384e63;p=mesa.git vk: Initialize dynamic state binding points to NULL We rely on these being initialized to NULL so meta can reliably detect whether or not they've been set. ds_state is also allowed to not be present so we need a well-defined value for that. --- diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 3c9c6d3e043..e2a2eebff2c 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -2353,6 +2353,9 @@ VkResult anv_CreateCommandBuffer( cmd_buffer->dirty = 0; cmd_buffer->vb_dirty = 0; cmd_buffer->pipeline = NULL; + cmd_buffer->vp_state = NULL; + cmd_buffer->rs_state = NULL; + cmd_buffer->ds_state = NULL; *pCmdBuffer = (VkCmdBuffer) cmd_buffer;