summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_state.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-11-10 13:44:45 +0800
committerChia-I Wu <[email protected]>2014-11-10 15:46:31 +0800
commitd388d8576f004cbc6e659ab7e7b0e9af938f7068 (patch)
tree44ee37594b717eaa6fa83b88d5c7353ad71e75de /src/gallium/drivers/ilo/ilo_state.h
parent55d70e0669fd363c434ad781fe66d60095585062 (diff)
ilo: derive fb blending caps at bind time
Derive whether a RT supports blending, logicop, and the like when set_framebuffer_state() is called. This enables us to simplify gen6_BLEND_STATE(). Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_state.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_state.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_state.h b/src/gallium/drivers/ilo/ilo_state.h
index 6f544e1f788..afe27847a93 100644
--- a/src/gallium/drivers/ilo/ilo_state.h
+++ b/src/gallium/drivers/ilo/ilo_state.h
@@ -347,6 +347,13 @@ struct ilo_fb_state {
struct ilo_view_surface null_rt;
struct ilo_zs_surface null_zs;
+ struct ilo_fb_blend_caps {
+ bool can_logicop;
+ bool can_blend;
+ bool can_alpha_test;
+ bool dst_alpha_forced_one;
+ } blend_caps[PIPE_MAX_COLOR_BUFS];
+
unsigned num_samples;
};