struct lp_build_blend_soa_context bld;
unsigned i, j;
+ if(!blend->blend_enable) {
+ for (i = 0; i < 4; ++i)
+ res[i] = src[i];
+ return;
+ }
+
+ /* It makes no sense to blend unless values are normalized */
+ assert(type.norm);
+
/* Setup build context */
memset(&bld, 0, sizeof bld);
lp_build_context_init(&bld.base, builder, type);
const union lp_type blend_types[] = {
/* float, fixed, sign, norm, width, len */
- {{ TRUE, FALSE, TRUE, TRUE, 32, 4 }}, /* f32 x 4 */
+ {{ TRUE, FALSE, FALSE, TRUE, 32, 4 }}, /* f32 x 4 */
{{ FALSE, FALSE, FALSE, TRUE, 8, 16 }}, /* u8n x 16 */
};