summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Leone <dleone@nvidia.com>2011-09-15 13:10:52 -0700
committerAaron Plattner <aplattner@nvidia.com>2011-09-22 12:38:15 -0700
commitfa0973db6ab2a332c68f07e397771f0018741d6f (patch)
tree9f319c1382fd74c2ecbf11770cb6b6248c58cc58
parent0ab156f5b9d812ad9e94354e4e04490ed119eb1f (diff)
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@nvidia.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
-rw-r--r--t_tsrccoords.c8
1 files changed, 8 insertions, 0 deletions
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");