From a909210131494a6a131855d7d344b61b81fbf40e Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 9 Aug 2016 00:37:39 +0200 Subject: gallium: add render_condition_enable param to clear_render_target/depth_stencil MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Roland Scheidegger Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/trace/tr_context.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/gallium/drivers/trace') diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c index 65d7f4eca79..ef36f5faa47 100644 --- a/src/gallium/drivers/trace/tr_context.c +++ b/src/gallium/drivers/trace/tr_context.c @@ -1291,7 +1291,8 @@ trace_context_clear_render_target(struct pipe_context *_pipe, struct pipe_surface *dst, const union pipe_color_union *color, unsigned dstx, unsigned dsty, - unsigned width, unsigned height) + unsigned width, unsigned height, + bool render_condition_enabled) { struct trace_context *tr_ctx = trace_context(_pipe); struct pipe_context *pipe = tr_ctx->pipe; @@ -1307,8 +1308,10 @@ trace_context_clear_render_target(struct pipe_context *_pipe, trace_dump_arg(uint, dsty); trace_dump_arg(uint, width); trace_dump_arg(uint, height); + trace_dump_arg(bool, render_condition_enabled); - pipe->clear_render_target(pipe, dst, color, dstx, dsty, width, height); + pipe->clear_render_target(pipe, dst, color, dstx, dsty, width, height, + render_condition_enabled); trace_dump_call_end(); } @@ -1320,7 +1323,8 @@ trace_context_clear_depth_stencil(struct pipe_context *_pipe, double depth, unsigned stencil, unsigned dstx, unsigned dsty, - unsigned width, unsigned height) + unsigned width, unsigned height, + bool render_condition_enabled) { struct trace_context *tr_ctx = trace_context(_pipe); struct pipe_context *pipe = tr_ctx->pipe; @@ -1338,9 +1342,11 @@ trace_context_clear_depth_stencil(struct pipe_context *_pipe, trace_dump_arg(uint, dsty); trace_dump_arg(uint, width); trace_dump_arg(uint, height); + trace_dump_arg(bool, render_condition_enabled); pipe->clear_depth_stencil(pipe, dst, clear_flags, depth, stencil, - dstx, dsty, width, height); + dstx, dsty, width, height, + render_condition_enabled); trace_dump_call_end(); } -- cgit v1.2.3