summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-09-12 15:06:44 -0600
committerBrian Paul <[email protected]>2013-10-03 14:05:26 -0600
commit96b9c094952868513961cf4f8612949f3e624ab9 (patch)
treee663bd23a411d7af147291a667a36a49a96aab2f /src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
parentbbc1fd8c80961cc2a756529050c1a29b55d0b255 (diff)
vl: use pipe_context::bind_sampler_states() if non-null
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_mpeg12_decoder.c')
-rw-r--r--src/gallium/auxiliary/vl/vl_mpeg12_decoder.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
index f91f90b7ac6..3b577ace4d5 100644
--- a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
+++ b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
@@ -747,7 +747,13 @@ vl_mpeg12_end_frame(struct pipe_video_codec *decoder,
vl_idct_prepare_stage2(i ? &dec->idct_c : &dec->idct_y, &buf->idct[plane]);
else {
dec->base.context->set_fragment_sampler_views(dec->base.context, 1, &mc_source_sv[plane]);
- dec->base.context->bind_fragment_sampler_states(dec->base.context, 1, &dec->sampler_ycbcr);
+ if (dec->base.context->bind_sampler_states)
+ dec->base.context->bind_sampler_states(dec->base.context,
+ PIPE_SHADER_FRAGMENT,
+ 0, 1,
+ &dec->sampler_ycbcr);
+ else
+ dec->base.context->bind_fragment_sampler_states(dec->base.context, 1, &dec->sampler_ycbcr);
}
vl_mc_render_ycbcr(i ? &dec->mc_c : &dec->mc_y, &buf->mc[i], j, buf->num_ycbcr_blocks[plane]);
}