summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2014-05-21 08:41:06 -0400
committerRob Clark <[email protected]>2014-05-21 12:06:38 -0400
commitcb9ed57072caeee1ef88e8e0e5528a2caee8422d (patch)
treefcf114bb7e63d94429359deedb2277728ff97257 /src/gallium/drivers
parent46737cebd337200f8b88ba9081796fa0f94e9143 (diff)
rbug: add missing pipe->blit() entrypoint
Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Jakob Bornecrantz <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/rbug/rbug_context.c21
1 files changed, 21 insertions, 0 deletions
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
@@ -831,6 +831,26 @@ rbug_resource_copy_region(struct pipe_context *_pipe,
}
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;