From eb2e7ed81b324af730c1a7639c9ca9ed60152875 Mon Sep 17 00:00:00 2001 From: Søren Sandmann Pedersen Date: Mon, 5 Sep 2011 14:43:25 -0400 Subject: test: Occasionally use a BILINEAR filter in blitters-test 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 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/blitters-test.c b/test/blitters-test.c index 790a27f..4f931c4 100644 --- a/test/blitters-test.c +++ b/test/blitters-test.c @@ -68,6 +68,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; @@ -422,6 +425,6 @@ main (int argc, const char *argv[]) } return fuzzer_test_main("blitters", 2000000, - 0xB610300B, + 0x29137844, test_composite, argc, argv); } -- cgit v1.2.3