summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_context.h
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-01-14 00:49:48 -0800
committerCorbin Simpson <[email protected]>2009-02-01 23:30:22 -0800
commit28bb7f3206f023a9d3cfa020da344a57118a2efb (patch)
tree5bdb49d20441e9e16bf7c572c85a5fd4a78ab0b3 /src/gallium/drivers/r300/r300_context.h
parent74288078eab1971cc6ce3ae00fa55eb917b5826a (diff)
r300: Add scissor state, fix build.
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.h')
-rw-r--r--src/gallium/drivers/r300/r300_context.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h
index b9fff0deab9..6c64c9fa83d 100644
--- a/src/gallium/drivers/r300/r300_context.h
+++ b/src/gallium/drivers/r300/r300_context.h
@@ -34,7 +34,13 @@ struct r300_blend_state {
uint32_t dither; /* R300_RB3D_DITHER_CTL: 0x4e50 */
};
-#define R300_NEW_BLEND 0x1
+struct r300_scissor_state {
+ uint32_t scissor_top_left; /* R300_SC_SCISSORS_TL: 0x43e0 */
+ uint32_t scissor_bottom_right; /* R300_SC_SCISSORS_BR: 0x43e4 */
+};
+
+#define R300_NEW_BLEND 0x1
+#define R300_NEW_SCISSOR 0x2
struct r300_context {
/* Parent class */
@@ -48,6 +54,8 @@ struct r300_context {
/* Various CSO state objects. */
/* Blend state. */
struct r300_blend_state* blend_state;
+ /* Scissor state. */
+ struct r300_scissor_state* scissor_state;
/* Bitmask of dirty state objects. */
uint32_t dirty_state;