{
struct pipe_constant_buffer *cb = &buf->cb[index];
struct panfrost_resource *rsrc = pan_resource(cb->buffer);
+ struct panfrost_batch *batch = panfrost_get_batch_for_fbo(ctx);
if (rsrc) {
+ panfrost_batch_add_bo(batch, rsrc->bo);
return rsrc->bo->gpu;
} else if (cb->user_buffer) {
- struct panfrost_batch *batch = panfrost_get_batch_for_fbo(ctx);
return panfrost_upload_transient(batch, cb->user_buffer, cb->buffer_size);
} else {
unreachable("No constant buffer");
struct panfrost_shader_state *ss = &all->variants[all->active_variant];
+ panfrost_batch_add_bo(batch, ss->bo);
+
/* Uniforms are implicitly UBO #0 */
bool has_uniforms = buf->enabled_mask & (1 << 0);