[PATCH] rendercheck: fix a bunch of gradients test
Dave Airlie
airlied at gmail.com
Tue Jun 2 23:31:39 PDT 2015
From: Dave Airlie <airlied at redhat.com>
This takes a rendercheck against master Xephyr using fb from
18731 tests passed of 51681 total
to
49373 tests passed of 51681 total
I'll leave it up to the reader to
a) tell me why?
b) tell me if pixman or rendercheck is wrong.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
t_gradient.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t_gradient.c b/t_gradient.c
index 4f84403..1096f9a 100644
--- a/t_gradient.c
+++ b/t_gradient.c
@@ -162,7 +162,7 @@ render_to_gradient_test(Display *dpy, picture_info *src)
static void gradientPixel(const stop *stops, double pos, unsigned int spread, color4d *result)
{
const int PRECISION = 1<<16;
- int ipos = pos * PRECISION - 1;
+ int ipos = (pos + 0.05) * PRECISION - 1;
int i;
double frac;
--
2.4.2
More information about the xorg-devel
mailing list