diff options
Diffstat (limited to 'src/sna/gen4_render.c')
-rw-r--r-- | src/sna/gen4_render.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c index 75b07a3c..f80fa835 100644 --- a/src/sna/gen4_render.c +++ b/src/sna/gen4_render.c @@ -1690,7 +1690,10 @@ gen4_render_video(struct sna *sna, tmp.dst.format = sna_format_for_depth(pixmap->drawable.depth); tmp.dst.bo = priv->gpu_bo; - tmp.src.filter = SAMPLER_FILTER_BILINEAR; + if (src_w == drw_w && src_h == drw_h) + tmp.src.filter = SAMPLER_FILTER_NEAREST; + else + tmp.src.filter = SAMPLER_FILTER_BILINEAR; tmp.src.repeat = SAMPLER_EXTEND_PAD; tmp.src.bo = frame->bo; tmp.mask.bo = NULL; |