Clear inherits the render targets from the current render pass. This
means we need to fill out the binding table after switching to meta
bindings. However, meta copies etc happen outside a render pass and
break when we try to fill in the render targets. This change fills the
render targets only for meta clear.
state->old_bindings = cmd_buffer->bindings;
cmd_buffer->bindings = &state->bindings;
state->old_pipeline = cmd_buffer->pipeline;
-
- /* Initialize render targets for the meta bindings. */
- anv_cmd_buffer_fill_render_targets(cmd_buffer);
}
static void
anv_cmd_buffer_save(cmd_buffer, &saved_state);
+ /* Initialize render targets for the meta bindings. */
+ anv_cmd_buffer_fill_render_targets(cmd_buffer);
+
anv_CmdBindVertexBuffers((VkCmdBuffer) cmd_buffer, 0, 2,
(VkBuffer[]) {
(VkBuffer) &vertex_buffer,