diff options
author | Kristian Høgsberg Kristensen <[email protected]> | 2015-06-02 22:51:42 -0700 |
---|---|---|
committer | Kristian Høgsberg Kristensen <[email protected]> | 2015-06-02 22:57:42 -0700 |
commit | 5744d1763c8a094c5141f37c2affe24f5feb63f9 (patch) | |
tree | ee9e00a6d436307a738ea9658f300f90e7d8f396 /src | |
parent | c8f078537e66ee4eba28bd5e381ef8a1a679f1be (diff) |
vk: Set cb_state to NULL at cmd buffer create time
Dynamic color/blend state can be NULL in case we're not rendering to
color targets (only output to depth and/or stencil). Initialize
cmd_buffer->cb_state to NULL so we can reliably detect whether it's been
set or not.
Diffstat (limited to 'src')
-rw-r--r-- | src/vulkan/device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c index e44f063237f..091d9280792 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -2297,6 +2297,7 @@ VkResult anv_CreateCommandBuffer( cmd_buffer->device = device; cmd_buffer->rs_state = NULL; cmd_buffer->vp_state = NULL; + cmd_buffer->cb_state = NULL; memset(&cmd_buffer->descriptors, 0, sizeof(cmd_buffer->descriptors)); result = anv_batch_bo_create(device, &cmd_buffer->last_batch_bo); |