summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-02-17 14:55:49 +0100
committerNicolai Hähnle <[email protected]>2017-04-05 10:37:16 +0200
commit0e1c75acae530b8386d0f6529ea1c78daaf8d412 (patch)
tree65099b751df445d3b3c0fa6f3bf6465c8c9c76de
parentd6e6fa01a51f3c9328c4cfdc1d7b3b448de11b84 (diff)
ddebug: add resource_commit pass-through
v2: fix return type to bool (Marek) Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/gallium/drivers/ddebug/dd_context.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/ddebug/dd_context.c b/src/gallium/drivers/ddebug/dd_context.c
index 9811663b4da..f9d3de5155a 100644
--- a/src/gallium/drivers/ddebug/dd_context.c
+++ b/src/gallium/drivers/ddebug/dd_context.c
@@ -691,6 +691,16 @@ dd_context_memory_barrier(struct pipe_context *_pipe, unsigned flags)
pipe->memory_barrier(pipe, flags);
}
+static bool
+dd_context_resource_commit(struct pipe_context *_pipe,
+ struct pipe_resource *resource,
+ unsigned level, struct pipe_box *box, bool commit)
+{
+ struct pipe_context *pipe = dd_context(_pipe)->pipe;
+
+ return pipe->resource_commit(pipe, resource, level, box, commit);
+}
+
static void
dd_context_get_sample_position(struct pipe_context *_pipe,
unsigned sample_count, unsigned sample_index,
@@ -839,6 +849,7 @@ dd_context_create(struct dd_screen *dscreen, struct pipe_context *pipe)
CTX_INIT(texture_subdata);
CTX_INIT(texture_barrier);
CTX_INIT(memory_barrier);
+ CTX_INIT(resource_commit);
/* create_video_codec */
/* create_video_buffer */
/* set_compute_resources */