if (info->input)
pipe->set_constant_buffer(pipe, PIPE_SHADER_COMPUTE, 0, &ubuf);
- panfrost_emit_for_draw(ctx, false);
+ panfrost_patch_shader_state(ctx, PIPE_SHADER_COMPUTE);
+ panfrost_emit_shader_meta(batch, PIPE_SHADER_COMPUTE, payload);
+ panfrost_emit_const_buf(batch, PIPE_SHADER_COMPUTE, payload);
panfrost_emit_shared_memory(batch, info, payload);
/* Invoke according to the grid info */
bool
panfrost_writes_point_size(struct panfrost_context *ctx);
+void
+panfrost_patch_shader_state(struct panfrost_context *ctx,
+ enum pipe_shader_type stage);
+
void
panfrost_emit_for_draw(struct panfrost_context *ctx, bool with_vertex_data);