From: Samuel Pitoiset Date: Thu, 29 Mar 2018 08:49:33 +0000 (+0200) Subject: radv: scan which color blend attachments are enabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a8818d1af2c5810ea9236f9962fd887b52418f9f;p=mesa.git radv: scan which color blend attachments are enabled With cb_target_enabled_4bit in order to have four bits per CB. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 026bf83cc55..bf73214bbb7 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -55,6 +55,7 @@ struct radv_blend_state { uint32_t cb_color_control; uint32_t cb_target_mask; + uint32_t cb_target_enabled_4bit; uint32_t sx_mrt_blend_opt[8]; uint32_t cb_blend_control[8]; @@ -578,6 +579,7 @@ radv_pipeline_init_blend_state(struct radv_pipeline *pipeline, continue; blend.cb_target_mask |= (unsigned)att->colorWriteMask << (4 * i); + blend.cb_target_enabled_4bit |= 0xf << (4 * i); if (!att->blendEnable) { blend.cb_blend_control[i] = blend_cntl; continue;