[PATCH rendercheck] t_tsrccoords: Skip this test when using indexed picture formats
Damien Leone
dleone at nvidia.com
Thu Sep 15 13:10:52 PDT 2011
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>
---
t_tsrccoords.c | 8 ++++++++
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");
--
1.7.5.4
More information about the xorg-devel
mailing list