summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h
index 68b54f8cee2..53a6f2bdc35 100644
--- a/src/gallium/drivers/radeonsi/si_state.h
+++ b/src/gallium/drivers/radeonsi/si_state.h
@@ -52,6 +52,15 @@ struct si_state_rasterizer {
float offset_scale;
};
+struct si_state_dsa {
+ struct si_pm4_state pm4;
+ unsigned alpha_ref;
+ unsigned db_render_override;
+ unsigned db_render_control;
+ uint8_t valuemask[2];
+ uint8_t writemask[2];
+};
+
union si_state {
struct {
struct si_state_blend *blend;
@@ -61,6 +70,7 @@ union si_state {
struct si_state_viewport *viewport;
struct si_pm4_state *framebuffer;
struct si_state_rasterizer *rasterizer;
+ struct si_state_dsa *dsa;
struct si_pm4_state *fb_rs;
} named;
struct si_pm4_state *array[0];