From 5a317ef4cba1fbd04fe2ec446a3556de2f384e63 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg=20Kristensen?= Date: Wed, 27 May 2015 21:45:23 -0700 Subject: [PATCH] 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. --- src/vulkan/device.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.30.2