diff options
-rw-r--r-- | src/vulkan/device.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 9eba8709a89..731cd8f32a4 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -2322,6 +2322,7 @@ VkResult anv_CreateCommandBuffer( cmd_buffer->rs_state = NULL; cmd_buffer->vp_state = NULL; cmd_buffer->cb_state = NULL; + cmd_buffer->ds_state = NULL; memset(&cmd_buffer->descriptors, 0, sizeof(cmd_buffer->descriptors)); result = anv_batch_bo_create(device, &cmd_buffer->last_batch_bo); @@ -2658,6 +2659,11 @@ VkResult anv_ResetCommandBuffer( cmd_buffer->surface_next = 1; cmd_buffer->surface_relocs.num_relocs = 0; + cmd_buffer->rs_state = NULL; + cmd_buffer->vp_state = NULL; + cmd_buffer->cb_state = NULL; + cmd_buffer->ds_state = NULL; + return VK_SUCCESS; } |