From cb9ed57072caeee1ef88e8e0e5528a2caee8422d Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 21 May 2014 08:41:06 -0400 Subject: [PATCH] rbug: add missing pipe->blit() entrypoint Signed-off-by: Rob Clark Reviewed-by: Jakob Bornecrantz --- src/gallium/drivers/rbug/rbug_context.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/gallium/drivers/rbug/rbug_context.c b/src/gallium/drivers/rbug/rbug_context.c index 0e7badb1d0f..2b99ddd7289 100644 --- a/src/gallium/drivers/rbug/rbug_context.c +++ b/src/gallium/drivers/rbug/rbug_context.c @@ -830,6 +830,26 @@ rbug_resource_copy_region(struct pipe_context *_pipe, pipe_mutex_unlock(rb_pipe->call_mutex); } +static void +rbug_blit(struct pipe_context *_pipe, const struct pipe_blit_info *_blit_info) +{ + struct rbug_context *rb_pipe = rbug_context(_pipe); + struct rbug_resource *rb_resource_dst = rbug_resource(_blit_info->dst.resource); + struct rbug_resource *rb_resource_src = rbug_resource(_blit_info->src.resource); + struct pipe_context *pipe = rb_pipe->pipe; + struct pipe_resource *dst = rb_resource_dst->resource; + struct pipe_resource *src = rb_resource_src->resource; + struct pipe_blit_info blit_info; + + blit_info = *_blit_info; + blit_info.dst.resource = dst; + blit_info.src.resource = src; + + pipe_mutex_lock(rb_pipe->call_mutex); + pipe->blit(pipe, &blit_info); + pipe_mutex_unlock(rb_pipe->call_mutex); +} + static void rbug_flush_resource(struct pipe_context *_pipe, struct pipe_resource *_res) @@ -1151,6 +1171,7 @@ rbug_context_create(struct pipe_screen *_screen, struct pipe_context *pipe) rb_pipe->base.set_index_buffer = rbug_set_index_buffer; rb_pipe->base.set_sample_mask = rbug_set_sample_mask; rb_pipe->base.resource_copy_region = rbug_resource_copy_region; + rb_pipe->base.blit = rbug_blit; rb_pipe->base.flush_resource = rbug_flush_resource; rb_pipe->base.clear = rbug_clear; rb_pipe->base.clear_render_target = rbug_clear_render_target; -- 2.30.2