summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2016-03-14 14:51:47 -0400
committerAdam Jackson <ajax@redhat.com>2016-03-14 15:34:04 -0400
commit3d7add9804c10f5c0555e4cf86dbddc11b3b1c6e (patch)
treea2c1c2566974b299f46ecf9ad9a1d791cb0ed649
parentc828b535a914fdf1da54cc521ebe6bf9078d80ba (diff)
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 <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--t_triangles.c6
1 files changed, 6 insertions, 0 deletions
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: