summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/softpipe/sp_context.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-07-27 10:21:34 -0600
committerBrian <[email protected]>2007-07-27 10:21:34 -0600
commita0c1d591ab8d19377c7ab784a0472fac00f9fcd3 (patch)
tree1c0b32d0f8b456f9a6abdece3c65dbc6822668a0 /src/mesa/pipe/softpipe/sp_context.h
parent78ea9cee0d7fd424238ec25f9939d2c955694c0a (diff)
Maintain cliprect (scissor) info in sp_state_derived.c.
The cliprect depends on the scissor rect (if enabled), otherwise the drawing surface bounds.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_context.h')
-rw-r--r--src/mesa/pipe/softpipe/sp_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_context.h b/src/mesa/pipe/softpipe/sp_context.h
index 8871b45d4ff..3c379c9091a 100644
--- a/src/mesa/pipe/softpipe/sp_context.h
+++ b/src/mesa/pipe/softpipe/sp_context.h
@@ -117,6 +117,9 @@ struct softpipe_context {
GLubyte stipple_masks[16][16];
#endif
+ /** Derived from scissor and surface bounds: */
+ struct pipe_scissor_state cliprect;
+
GLuint occlusion_counter;
GLuint line_stipple_counter;