rendercheck: rendercheck.h tests.c t_gradient.c

Keith Packard keithp at kemper.freedesktop.org
Tue Apr 15 13:27:57 PDT 2008


 rendercheck.h |    1 +
 t_gradient.c  |    1 +
 tests.c       |    8 +++-----
 3 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 8288fd35540d148f7900d883525b530c4923eb71
Author: Keith Packard <keithp at keithp.com>
Date:   Tue Apr 15 13:27:35 2008 -0700

    Remove bogus extra loop from gradient tests.
    
    Gradient tests use a single loop, not two.

diff --git a/rendercheck.h b/rendercheck.h
index 40a36f6..3ae39ce 100644
--- a/rendercheck.h
+++ b/rendercheck.h
@@ -20,6 +20,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <X11/Xlib.h>
 #include <X11/extensions/Xrender.h>
 
 #if HAVE_ERR_H
diff --git a/t_gradient.c b/t_gradient.c
index 3af209d..b0b58fd 100644
--- a/t_gradient.c
+++ b/t_gradient.c
@@ -211,6 +211,7 @@ Bool linear_gradient_test(Display *dpy, picture_info *win,
 		pa.repeat = repeat;
 		XRenderChangePicture(dpy, gradient, CPRepeat, &pa);
 
+		assert (dst_color->pict > 100);
                 XRenderComposite(dpy, PictOpSrc, dst_color->pict, 0, dst->pict, 0, 0,
                                  0, 0, 0, 0, win_width, win_height);
                 XRenderComposite(dpy, ops[op].op, gradient, 0,
diff --git a/tests.c b/tests.c
index ff41bbd..549010c 100644
--- a/tests.c
+++ b/tests.c
@@ -652,11 +652,9 @@ do {								\
                            ops[i].name, pi->name);
                     
                     for (src = 0; src < num_tests; src++) {
-                        for (mask = 0; mask < num_tests; mask++) {
-                            ok = linear_gradient_test(dpy, win, pi, i,
-				&pictures_1x1[dst]);
-			    RECORD_RESULTS();
-                        }
+			ok = linear_gradient_test(dpy, win, pi, i,
+						  &pictures_1x1[src]);
+			RECORD_RESULTS();
                     }
                 }
             }


More information about the xorg-commit mailing list