diff options
author | Jason Ekstrand <[email protected]> | 2015-06-09 16:27:55 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-06-09 16:27:55 -0700 |
commit | 5d4b6a01af4ceda37dbde0159247a45cfbff404e (patch) | |
tree | 233939302fbaa59dd2c39af448746fe5b3458365 /src/vulkan | |
parent | 634a6150b9302bd53c484759750854ce0fc0efb4 (diff) |
vk/cmd_buffer: Properly initialize/reset dynamic states
Diffstat (limited to 'src/vulkan')
-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; } |