diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-27 21:07:22 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-27 21:08:52 +0100 |
commit | 95866bd6bdaeb612732fd43ec1b93e088763086e (patch) | |
tree | f02a61a901df09017e75081e47b5ece15e8189b6 | |
parent | 7446b39f04306ae2ffccdfe8dd6c8bda64a27043 (diff) |
sna/video: Use EXTEND_PAD to avoid mixing in the border color
...which is 0 and appears green around an unaligned YUV-video.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38723
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/gen4_render.c | 2 | ||||
-rw-r--r-- | src/sna/gen5_render.c | 2 | ||||
-rw-r--r-- | src/sna/gen6_render.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c index 434de07b..15343ee8 100644 --- a/src/sna/gen4_render.c +++ b/src/sna/gen4_render.c @@ -1631,7 +1631,7 @@ gen4_render_video(struct sna *sna, tmp.dst.bo = priv->gpu_bo; tmp.src.filter = SAMPLER_FILTER_BILINEAR; - tmp.src.repeat = SAMPLER_EXTEND_NONE; + tmp.src.repeat = SAMPLER_EXTEND_PAD; tmp.u.gen4.wm_kernel = is_planar_fourcc(frame->id) ? WM_KERNEL_VIDEO_PLANAR : WM_KERNEL_VIDEO_PACKED; tmp.is_affine = TRUE; diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c index aa8fc181..de0d67a0 100644 --- a/src/sna/gen5_render.c +++ b/src/sna/gen5_render.c @@ -1643,7 +1643,7 @@ gen5_render_video(struct sna *sna, tmp.dst.bo = priv->gpu_bo; tmp.src.filter = SAMPLER_FILTER_BILINEAR; - tmp.src.repeat = SAMPLER_EXTEND_NONE; + tmp.src.repeat = SAMPLER_EXTEND_PAD; tmp.u.gen5.wm_kernel = is_planar_fourcc(frame->id) ? WM_KERNEL_VIDEO_PLANAR : WM_KERNEL_VIDEO_PACKED; tmp.u.gen5.ve_id = 1; diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index bd0f8c42..0b6f9954 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -1824,7 +1824,7 @@ gen6_render_video(struct sna *sna, tmp.dst.bo = priv->gpu_bo; tmp.src.filter = SAMPLER_FILTER_BILINEAR; - tmp.src.repeat = SAMPLER_EXTEND_NONE; + tmp.src.repeat = SAMPLER_EXTEND_PAD; tmp.is_affine = TRUE; tmp.floats_per_vertex = 3; |