mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
vk: Set color/blend state in meta clear if not set yet
This commit is contained in:
parent
1286bd3160
commit
a37d122e88
1 changed files with 5 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue