From 4fc4f7b9ea83f02a81e9a3f57db7ae655490379a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20K=C3=B6nig?= Date: Fri, 15 Apr 2011 00:01:27 +0200 Subject: [PATCH] [g3dvl] set ref samplers to linear again --- src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c b/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c index dde7846ffb2..702d7e305fd 100644 --- a/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c +++ b/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c @@ -330,9 +330,9 @@ init_pipe_state(struct vl_mpeg12_mc_renderer *r) sampler.wrap_s = PIPE_TEX_WRAP_CLAMP_TO_EDGE; sampler.wrap_t = PIPE_TEX_WRAP_CLAMP_TO_EDGE; sampler.wrap_r = PIPE_TEX_WRAP_CLAMP_TO_BORDER; - sampler.min_img_filter = PIPE_TEX_FILTER_NEAREST; + sampler.min_img_filter = PIPE_TEX_FILTER_LINEAR; sampler.min_mip_filter = PIPE_TEX_MIPFILTER_NONE; - sampler.mag_img_filter = PIPE_TEX_FILTER_NEAREST; + sampler.mag_img_filter = PIPE_TEX_FILTER_LINEAR; sampler.compare_mode = PIPE_TEX_COMPARE_NONE; sampler.compare_func = PIPE_FUNC_ALWAYS; sampler.normalized_coords = 1; @@ -340,6 +340,8 @@ init_pipe_state(struct vl_mpeg12_mc_renderer *r) if (!r->sampler_ref) goto error_sampler_ref; + sampler.min_img_filter = PIPE_TEX_FILTER_NEAREST; + sampler.mag_img_filter = PIPE_TEX_FILTER_NEAREST; r->sampler_ycbcr = r->pipe->create_sampler_state(r->pipe, &sampler); if (!r->sampler_ycbcr) goto error_sampler_ycbcr; -- 2.30.2