diff options
author | Ilia Mirkin <[email protected]> | 2016-06-11 11:35:01 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-06-18 12:59:12 -0400 |
commit | 82fab73246810332bb238e96335ba81d4d2182d6 (patch) | |
tree | aa3af2ac815d60acd7cba5086d651ac302361982 /src/gallium/include/pipe/p_context.h | |
parent | d68c1e2ac28bbf0ac6259e9619fb73958fc598b8 (diff) |
gallium: add API for setting window rectangles
Window rectangles apply to all framebuffer operations, either in
inclusive or exclusive mode. They may also be specified as part of a
blit operation.
In exclusive mode, any fragment inside any of the specified rectangles
will be discarded.
In inclusive mode, any fragment outside every rectangle will be
discarded.
The no-op state is to have 0 rectangles in exclusive mode.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe/p_context.h')
-rw-r--r-- | src/gallium/include/pipe/p_context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h index 9d7a8eb76a9..6fde8753a72 100644 --- a/src/gallium/include/pipe/p_context.h +++ b/src/gallium/include/pipe/p_context.h @@ -274,6 +274,11 @@ struct pipe_context { unsigned num_scissors, const struct pipe_scissor_state * ); + void (*set_window_rectangles)( struct pipe_context *, + boolean include, + unsigned num_rectangles, + const struct pipe_scissor_state * ); + void (*set_viewport_states)( struct pipe_context *, unsigned start_slot, unsigned num_viewports, |