From 7c8716e4fb1a5c7dfacbbf84c6d1e1c382166ed5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 6 Aug 2018 04:15:47 -0400 Subject: [PATCH] ddebug: implement set_window_rectangles Reviewed-by: Samuel Pitoiset --- src/gallium/auxiliary/driver_ddebug/dd_context.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/gallium/auxiliary/driver_ddebug/dd_context.c b/src/gallium/auxiliary/driver_ddebug/dd_context.c index dd7b3e086cd..a1b6c971e89 100644 --- a/src/gallium/auxiliary/driver_ddebug/dd_context.c +++ b/src/gallium/auxiliary/driver_ddebug/dd_context.c @@ -410,6 +410,17 @@ static void dd_context_set_tess_state(struct pipe_context *_pipe, pipe->set_tess_state(pipe, default_outer_level, default_inner_level); } +static void dd_context_set_window_rectangles(struct pipe_context *_pipe, + boolean include, + unsigned num_rectangles, + const struct pipe_scissor_state *rects) +{ + struct dd_context *dctx = dd_context(_pipe); + struct pipe_context *pipe = dctx->pipe; + + pipe->set_window_rectangles(pipe, include, num_rectangles, rects); +} + /******************************************************************** * views @@ -824,6 +835,7 @@ dd_context_create(struct dd_screen *dscreen, struct pipe_context *pipe) CTX_INIT(set_shader_buffers); CTX_INIT(set_shader_images); CTX_INIT(set_vertex_buffers); + CTX_INIT(set_window_rectangles); CTX_INIT(create_stream_output_target); CTX_INIT(stream_output_target_destroy); CTX_INIT(set_stream_output_targets); -- 2.30.2