[PATCH rendercheck 1/4] triangles: Fix tests for conjoint and disjoint ops

Adam Jackson ajax at redhat.com
Mon Mar 14 19:09:01 UTC 2016


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.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 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:
-- 
2.5.0



More information about the xorg-devel mailing list