From d388d8576f004cbc6e659ab7e7b0e9af938f7068 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 10 Nov 2014 13:44:45 +0800 Subject: 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 --- src/gallium/drivers/ilo/ilo_state.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gallium/drivers/ilo/ilo_state.h') 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; }; -- cgit v1.2.3