[Mesa-dev] [PATCH 1/4] ddebug: implement set_window_rectangles
Samuel Pitoiset
samuel.pitoiset at gmail.com
Tue Aug 14 12:09:37 UTC 2018
Series is:
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
On 8/9/18 3:29 AM, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> ---
> 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
> @@ -403,20 +403,31 @@ static void dd_context_set_tess_state(struct pipe_context *_pipe,
> struct dd_context *dctx = dd_context(_pipe);
> struct pipe_context *pipe = dctx->pipe;
>
> memcpy(dctx->draw_state.tess_default_levels, default_outer_level,
> sizeof(float) * 4);
> memcpy(dctx->draw_state.tess_default_levels+4, default_inner_level,
> sizeof(float) * 2);
> 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
> */
>
> static struct pipe_surface *
> dd_context_create_surface(struct pipe_context *_pipe,
> struct pipe_resource *resource,
> const struct pipe_surface *surf_tmpl)
> {
> @@ -817,20 +828,21 @@ dd_context_create(struct dd_screen *dscreen, struct pipe_context *pipe)
> CTX_INIT(set_constant_buffer);
> CTX_INIT(set_framebuffer_state);
> CTX_INIT(set_polygon_stipple);
> CTX_INIT(set_scissor_states);
> CTX_INIT(set_viewport_states);
> CTX_INIT(set_sampler_views);
> CTX_INIT(set_tess_state);
> 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);
> CTX_INIT(create_sampler_view);
> CTX_INIT(sampler_view_destroy);
> CTX_INIT(create_surface);
> CTX_INIT(surface_destroy);
> CTX_INIT(texture_barrier);
> CTX_INIT(memory_barrier);
> CTX_INIT(resource_commit);
>
More information about the mesa-dev
mailing list