[Mesa-dev] [PATCH 2/4] noop: implement set_window_rectangles

Marek Olšák maraeo at gmail.com
Thu Aug 9 01:29:43 UTC 2018


From: Marek Olšák <marek.olsak at amd.com>

---
 src/gallium/auxiliary/driver_noop/noop_state.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/gallium/auxiliary/driver_noop/noop_state.c b/src/gallium/auxiliary/driver_noop/noop_state.c
index 80cfae8ad49..11e2c173a37 100644
--- a/src/gallium/auxiliary/driver_noop/noop_state.c
+++ b/src/gallium/auxiliary/driver_noop/noop_state.c
@@ -240,20 +240,27 @@ static void noop_stream_output_target_destroy(struct pipe_context *ctx,
    FREE(t);
 }
 
 static void noop_set_stream_output_targets(struct pipe_context *ctx,
                                            unsigned num_targets,
                                            struct pipe_stream_output_target **targets,
                                            const unsigned *offsets)
 {
 }
 
+static void noop_set_window_rectangles(struct pipe_context *ctx,
+                                       boolean include,
+                                       unsigned num_rectangles,
+                                       const struct pipe_scissor_state *rects)
+{
+}
+
 void noop_init_state_functions(struct pipe_context *ctx);
 
 void noop_init_state_functions(struct pipe_context *ctx)
 {
    ctx->create_blend_state = noop_create_blend_state;
    ctx->create_depth_stencil_alpha_state = noop_create_dsa_state;
    ctx->create_fs_state = noop_create_shader_state;
    ctx->create_rasterizer_state = noop_create_rs_state;
    ctx->create_sampler_state = noop_create_sampler_state;
    ctx->create_sampler_view = noop_create_sampler_view;
@@ -290,18 +297,19 @@ void noop_init_state_functions(struct pipe_context *ctx)
    ctx->set_clip_state = noop_set_clip_state;
    ctx->set_constant_buffer = noop_set_constant_buffer;
    ctx->set_sampler_views = noop_set_sampler_views;
    ctx->set_framebuffer_state = noop_set_framebuffer_state;
    ctx->set_polygon_stipple = noop_set_polygon_stipple;
    ctx->set_sample_mask = noop_set_sample_mask;
    ctx->set_scissor_states = noop_set_scissor_states;
    ctx->set_stencil_ref = noop_set_stencil_ref;
    ctx->set_vertex_buffers = noop_set_vertex_buffers;
    ctx->set_viewport_states = noop_set_viewport_states;
+   ctx->set_window_rectangles = noop_set_window_rectangles;
    ctx->sampler_view_destroy = noop_sampler_view_destroy;
    ctx->surface_destroy = noop_surface_destroy;
    ctx->draw_vbo = noop_draw_vbo;
    ctx->launch_grid = noop_launch_grid;
    ctx->create_stream_output_target = noop_create_stream_output_target;
    ctx->stream_output_target_destroy = noop_stream_output_target_destroy;
    ctx->set_stream_output_targets = noop_set_stream_output_targets;
 }
-- 
2.17.1



More information about the mesa-dev mailing list