summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state.h
diff options
context:
space:
mode:
authorChristian König <[email protected]>2012-07-17 15:46:24 +0200
committerChristian König <[email protected]>2012-07-24 12:29:29 +0200
commit7e011d92c9746ba4050890442db6e504fa42c4ad (patch)
treeb6df4ce79982f1f6628e600b343b198158be6681 /src/gallium/drivers/radeonsi/si_state.h
parent43f414f7b76902a728d26231d4cc047b794df10b (diff)
radeonsi: move viewport to new handling
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h
index 51cb1c0d5b0..c70a2613864 100644
--- a/src/gallium/drivers/radeonsi/si_state.h
+++ b/src/gallium/drivers/radeonsi/si_state.h
@@ -35,12 +35,18 @@ struct si_state_blend {
uint32_t cb_color_control;
};
+struct si_state_viewport {
+ struct si_pm4_state pm4;
+ struct pipe_viewport_state viewport;
+};
+
union si_state {
struct {
- struct si_state_blend *blend;
- struct si_pm4_state *blend_color;
- struct si_pm4_state *clip;
- struct si_pm4_state *scissor;
+ struct si_state_blend *blend;
+ struct si_pm4_state *blend_color;
+ struct si_pm4_state *clip;
+ struct si_pm4_state *scissor;
+ struct si_state_viewport *viewport;
} named;
struct si_pm4_state *array[0];
};