From 3d7add9804c10f5c0555e4cf86dbddc11b3b1c6e Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 14 Mar 2016 14:51:47 -0400 Subject: triangles: Fix tests for conjoint and disjoint ops The expected destination color needs to vary by op in the same way as for the base ops. Takes us from 1170 tests passed of 1710 total to 1710/1710 on Xvfb. Reviewed-by: Eric Anholt Signed-off-by: Adam Jackson --- t_triangles.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t_triangles.c b/t_triangles.c index 05f98d8..9fbbf1e 100644 --- a/t_triangles.c +++ b/t_triangles.c @@ -36,6 +36,12 @@ static void get_dest_color (int op, color4d *in, color4d *out) { + if (op >= PictOpConjointMinimum && op <= PictOpConjointMaximum) + op -= PictOpConjointMinimum; + + if (op >= PictOpDisjointMinimum && op <= PictOpDisjointMaximum) + op -= PictOpDisjointMinimum; + switch (op) { case PictOpSrc: case PictOpClear: -- cgit v1.2.3