summaryrefslogtreecommitdiffstats
path: root/src/vulkan/meta.c
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <[email protected]>2015-06-02 23:08:05 -0700
committerKristian Høgsberg Kristensen <[email protected]>2015-06-02 23:08:05 -0700
commita37d122e883e183fba770c73f4611f00e0a8410f (patch)
tree49cfdc819f70eec14d3c1bdae64921257821f098 /src/vulkan/meta.c
parent1286bd3160bc1e70fa3bba2ec12999b2a02ffad9 (diff)
vk: Set color/blend state in meta clear if not set yet
Diffstat (limited to 'src/vulkan/meta.c')
-rw-r--r--src/vulkan/meta.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vulkan/meta.c b/src/vulkan/meta.c
index ee9593ae995..285c0202dee 100644
--- a/src/vulkan/meta.c
+++ b/src/vulkan/meta.c
@@ -281,6 +281,11 @@ anv_cmd_buffer_clear(struct anv_cmd_buffer *cmd_buffer,
VK_STATE_BIND_POINT_DEPTH_STENCIL,
device->meta_state.shared.ds_state);
+ if (cmd_buffer->cb_state == NULL)
+ anv_CmdBindDynamicStateObject((VkCmdBuffer) cmd_buffer,
+ VK_STATE_BIND_POINT_COLOR_BLEND,
+ device->meta_state.shared.cb_state);
+
anv_CmdDraw((VkCmdBuffer) cmd_buffer, 0, 3, 0, pass->num_clear_layers);
/* Restore API state */