diff options
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_context.h | 5 | ||||
-rw-r--r-- | src/gallium/include/pipe/p_state.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h index 9d7a8eb..6fde875 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, diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 396f563..9c69355 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -69,6 +69,7 @@ extern "C" { #define PIPE_MAX_VIEWPORTS 16 #define PIPE_MAX_CLIP_OR_CULL_DISTANCE_COUNT 8 #define PIPE_MAX_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT 2 +#define PIPE_MAX_WINDOW_RECTANGLES 8 struct pipe_reference @@ -710,6 +711,11 @@ struct pipe_blit_info boolean scissor_enable; struct pipe_scissor_state scissor; + /* Window rectangles can either be inclusive or exclusive. */ + boolean window_rectangle_include; + unsigned num_window_rectangles; + struct pipe_scissor_state window_rectangles[PIPE_MAX_WINDOW_RECTANGLES]; + boolean render_condition_enable; /**< whether the blit should honor the current render condition */ boolean alpha_blend; /* dst.rgb = src.rgb * src.a + dst.rgb * (1 - src.a) */ |