rendercheck: t_tsrccoords.c

Aaron Plattner aplattner at kemper.freedesktop.org
Thu Sep 22 12:39:09 PDT 2011


 t_tsrccoords.c |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit fa0973db6ab2a332c68f07e397771f0018741d6f
Author: Damien Leone <dleone at nvidia.com>
Date:   Thu Sep 15 13:10:52 2011 -0700

    t_tsrccoords: Skip this test when using indexed picture formats
    
    This test would fail at, for example, depth 8 because indexed color
    comparisons are not implemented in rendercheck yet. This commit
    workarounds this by passing the test if indexed picture formats are
    used.
    
    Signed-off-by: Damien Leone <dleone at nvidia.com>
    Reviewed-by: Aaron Plattner <aplattner at nvidia.com>
    Signed-off-by: Aaron Plattner <aplattner at nvidia.com>

diff --git a/t_tsrccoords.c b/t_tsrccoords.c
index 279591d..355880a 100644
--- a/t_tsrccoords.c
+++ b/t_tsrccoords.c
@@ -89,6 +89,14 @@ trans_coords_test(Display *dpy, picture_info *win, picture_info *white,
 	XImage *image;
 	int x, y;
 
+	/* Skip this test when using indexed picture formats because
+	 * indexed color comparisons are not implemented in rendercheck
+	 * yet.
+	 */
+	if (win->format->type == PictTypeIndexed) {
+		return TRUE;
+	}
+
 	src = create_dot_picture(dpy);
 	if (src == NULL) {
 		fprintf(stderr, "couldn't allocate picture for test\n");


More information about the xorg-commit mailing list