Mesa (master): rbug: forward texture_barrier to pipe driver

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Oct 18 10:12:35 UTC 2019


Module: Mesa
Branch: master
Commit: 8eea8c9691f082e5a9f172efc600cc40d389177e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8eea8c9691f082e5a9f172efc600cc40d389177e

Author: Lucas Stach <l.stach at pengutronix.de>
Date:   Mon Sep 16 15:07:53 2019 +0200

rbug: forward texture_barrier to pipe driver

Signed-off-by: Lucas Stach <l.stach at pengutronix.de>

---

 src/gallium/auxiliary/driver_rbug/rbug_context.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/gallium/auxiliary/driver_rbug/rbug_context.c b/src/gallium/auxiliary/driver_rbug/rbug_context.c
index 20b6f9755b2..7c5a2929d89 100644
--- a/src/gallium/auxiliary/driver_rbug/rbug_context.c
+++ b/src/gallium/auxiliary/driver_rbug/rbug_context.c
@@ -1203,6 +1203,17 @@ rbug_context_texture_subdata(struct pipe_context *_context,
    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)
@@ -1292,6 +1303,7 @@ 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;




More information about the mesa-commit mailing list