From: Søren Sandmann Pedersen <s...@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

_______________________________________________
Pixman mailing list
Pixman@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pixman

Reply via email to