summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-04-15 00:01:27 +0200
committerChristian König <[email protected]>2011-04-15 00:01:27 +0200
commit4fc4f7b9ea83f02a81e9a3f57db7ae655490379a (patch)
tree1b5a6eac7ee62ab73649d28c2f9f3b5a19e0113a
parent10c49b28752f5f2d822dfb1e2e6a1ec213cc44da (diff)
[g3dvl] set ref samplers to linear again
-rw-r--r--src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c6
1 files 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;