summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_context.h
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2016-06-11 16:52:17 -0400
committerIlia Mirkin <[email protected]>2016-06-18 13:38:30 -0400
commitd1bdc1238a39469e6760758876e8832019795a54 (patch)
tree2df6f5e0242f36cff0168f8ac1b85b071672ee7d /src/mesa/state_tracker/st_context.h
parent07fcb06fe0220a51ad20b6b8a70512071999182c (diff)
st/mesa: add support for GL_EXT_window_rectangles
Make sure to pass the requisite information in draws, blits, and clears that work on the context's draw buffer. Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_context.h')
-rw-r--r--src/mesa/state_tracker/st_context.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h
index a4f56eac7f8..e3bee60d4d7 100644
--- a/src/mesa/state_tracker/st_context.h
+++ b/src/mesa/state_tracker/st_context.h
@@ -161,6 +161,11 @@ struct st_context
struct pipe_framebuffer_state framebuffer;
struct pipe_scissor_state scissor[PIPE_MAX_VIEWPORTS];
struct pipe_viewport_state viewport[PIPE_MAX_VIEWPORTS];
+ struct {
+ unsigned num;
+ boolean include;
+ struct pipe_scissor_state rects[PIPE_MAX_WINDOW_RECTANGLES];
+ } window_rects;
unsigned sample_mask;
GLuint poly_stipple[32]; /**< In OpenGL's bottom-to-top order */