[Pixman] [PATCH] test: Change composite so that it tests randomly generated images

2010-03-07 Thread Søren Sandmann
From: Søren Sandmann Pedersen Previously this test would try to exhaustively test all combinations of formats and operators, which meant that it would take years to run. Instead, generate random images and test those. The random seed is based on time(), so we will get different tests every time

[Pixman] [PATCH] test: Fix eval_diff() so that it provides useful error values.

2010-03-07 Thread Søren Sandmann
From: Søren Sandmann Pedersen Previously, this function would evaluate the error under the assumption that the format was 565 or wider. This patch changes it to take the actual format into account. With that fixed, we can turn on testing for the rest of the formats. Cc: ch...@chris-wilson.co.uk

[Pixman] [PATCH] test: Fix bug in color_correct() in composite.c

2010-03-07 Thread Søren Sandmann
From: Søren Sandmann Pedersen This function was using the number of bits in a channel as if it were a mask, which lead to many spurious errors. With that fixed, we can turn on testing for all formats where all channels have 5 or more bits. Cc: ch...@chris-wilson.co.uk --- test/composite.c | 3

[Pixman] [PATCH] test: Add support for indexed formats to blitters-test

2010-03-07 Thread Søren Sandmann Pedersen
From: Søren Sandmann Pedersen These formats work fine, they just need to have a palette set. --- test/blitters-test.c | 27 --- 1 files changed, 24 insertions(+), 3 deletions(-) diff --git a/test/blitters-test.c b/test/blitters-test.c index 0b4b6c9..c11917d 100644 ---