diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2011-09-05 14:43:25 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2011-09-21 18:55:25 -0400 |
commit | eb2e7ed81b324af730c1a7639c9ca9ed60152875 (patch) | |
tree | 5e23cb21eef4c29dffa0eca55224edee7312219f | |
parent | 2a9f88430e7088eccfbbbd6c6b4f4e534126b1e1 (diff) |
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.
-rw-r--r-- | 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 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); } |