[Pixman] [PATCH] test: Occasionally use a BILINEAR filter in blitters-test

Søren Sandmann sandmann at cs.au.dk
Mon Sep 5 18:27:14 PDT 2011


From: Søren Sandmann Pedersen <ssp at redhat.com>

To test that reductions of BILINEAR->NEAREST for identity
transformations happen correctly, occasionally use a bilinear filter
in blitters test.
---
 test/blitters-test.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/test/blitters-test.c b/test/blitters-test.c
index 594ec54..a6dac77 100644
--- a/test/blitters-test.c
+++ b/test/blitters-test.c
@@ -69,6 +69,9 @@ create_random_image (pixman_format_code_t *allowed_formats,
 	pixman_image_set_indexed (img, &(y_palette[PIXMAN_FORMAT_BPP (fmt)]));
     }
 
+    if (lcg_rand_n (16) == 0)
+	pixman_image_set_filter (img, PIXMAN_FILTER_BILINEAR, NULL, 0);
+
     image_endian_swap (img);
 
     if (used_fmt) *used_fmt = fmt;
@@ -423,6 +426,6 @@ main (int argc, const char *argv[])
     }
 
     return fuzzer_test_main("blitters", 2000000,
-			    0xB610300B,
+			    0x29137844,
 			    test_composite, argc, argv);
 }
-- 
1.6.0.6



More information about the Pixman mailing list