Commit d2429373 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Implement other way of blending around

parent 9200682c
......@@ -543,10 +543,14 @@ trans_make_fixed_blend_part(unsigned func, unsigned src_factor, unsigned dst_fac
part.dominant = MALI_BLEND_DOM_SOURCE; /* Arbitrary choice, but align with the blob until we understand more */
part.nondominant_mode = MALI_BLEND_NON_MIRROR;
} else if (src_factor == complement_factor(dst_factor)) {
/* TODO: How does this work exactly? Also, implement other way around please */
/* TODO: How does this work exactly? */
part.dominant = MALI_BLEND_DOM_SOURCE;
part.nondominant_mode = MALI_BLEND_NON_MIRROR;
part.clip_modifier = MALI_BLEND_MOD_DEST_ONE;
} else if (dst_factor == complement_factor(src_factor)) {
part.dominant = MALI_BLEND_DOM_SOURCE;
part.nondominant_mode = MALI_BLEND_NON_MIRROR;
part.clip_modifier = MALI_BLEND_MOD_SRC_ONE;
} else {
printf("Failed to find dominant factor?\n");
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment