/* set the bld color space based on the format if the format is UI, then set the bld in RGB color space if the format is Video, then set the bld in YUV color space  */
__s32 bld_cs_set(struct blender_submodule *p_bld, __u32 format)
/* set the bld color space based on the format if the format is UI, then set the bld in RGB color space if the format is Video, then set the bld in YUV color space  */
__s32 bld_cs_set(struct blender_submodule *p_bld, __u32 format)
{
	__s32 ret = -1;
	struct g2d_mixer_bld_reg *p_reg = NULL;
	p_reg = p_bld->get_reg(p_bld);
	if (!p_reg)
		goto OUT;
	if (format <= G2D_FORMAT_BGRA1010102) {
		p_reg->out_color.bits.alpha_mode = 0;
	} else if (format <= G2D_FORMAT_YUV411_PLANAR) {
		p_reg->out_color.bits.alpha_mode = 1;
	} else
		goto OUT;
	p_bld->set_block_dirty(p_bld, 0, 1);
	ret = 0;
OUT:
	return ret;
}