mtx_unlock(&rb_pipe->call_mutex);
}
+static void
+rbug_context_texture_barrier(struct pipe_context *_context, unsigned flags)
+{
+ struct rbug_context *rb_pipe = rbug_context(_context);
+ struct pipe_context *context = rb_pipe->pipe;
+
+ mtx_lock(&rb_pipe->call_mutex);
+ context->texture_barrier(context,
+ flags);
+ mtx_unlock(&rb_pipe->call_mutex);
+}
struct pipe_context *
rbug_context_create(struct pipe_screen *_screen, struct pipe_context *pipe)
rb_pipe->base.transfer_flush_region = rbug_context_transfer_flush_region;
rb_pipe->base.buffer_subdata = rbug_context_buffer_subdata;
rb_pipe->base.texture_subdata = rbug_context_texture_subdata;
+ rb_pipe->base.texture_barrier = rbug_context_texture_barrier;
rb_pipe->base.flush_resource = rbug_flush_resource;
rb_pipe->pipe = pipe;