diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-04-02 13:40:22 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-04-02 13:42:35 +0100 |
commit | 5c4dc9c5db7b2a5b936bdbc15536c5cf0f7f5f23 (patch) | |
tree | 347cbe35ff1fd10ea3510fe927146d02287cdca8 /src/sna/gen5_render.c | |
parent | 0b2651dc04cef8f9692b2557684f044b4980700f (diff) |
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 <linuxhippy@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45016
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen5_render.c')
-rw-r--r-- | src/sna/gen5_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |