From 5c4dc9c5db7b2a5b936bdbc15536c5cf0f7f5f23 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 2 Apr 2012 13:40:22 +0100 Subject: sna/gen3+: Fix sampling of borders around gradients Incurs a slight loss of precision for the internal gradient, but much more preferable to the artefacts around the borders with RepeatNone. Reported-by: Clemens Eisserer Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45016 Signed-off-by: Chris Wilson --- src/sna/gen5_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sna/gen5_render.c') diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c index c27accd7..1fb7f655 100644 --- a/src/sna/gen5_render.c +++ b/src/sna/gen5_render.c @@ -1904,7 +1904,7 @@ gen5_composite_linear_init(struct sna *sna, if (!channel->bo) return 0; - channel->filter = PictFilterBilinear; + channel->filter = PictFilterNearest; channel->repeat = picture->repeat ? picture->repeatType : RepeatNone; channel->width = channel->bo->pitch / 4; channel->height = 1; -- cgit v1.2.3