diff options
author | Brian Paul <[email protected]> | 2013-09-12 15:06:44 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-10-03 14:05:26 -0600 |
commit | 96b9c094952868513961cf4f8612949f3e624ab9 (patch) | |
tree | e663bd23a411d7af147291a667a36a49a96aab2f /src/gallium/auxiliary/vl/vl_zscan.c | |
parent | bbc1fd8c80961cc2a756529050c1a29b55d0b255 (diff) |
vl: use pipe_context::bind_sampler_states() if non-null
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_zscan.c')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_zscan.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/vl/vl_zscan.c b/src/gallium/auxiliary/vl/vl_zscan.c index 33baa3d9902..706a8094703 100644 --- a/src/gallium/auxiliary/vl/vl_zscan.c +++ b/src/gallium/auxiliary/vl/vl_zscan.c @@ -574,7 +574,12 @@ vl_zscan_render(struct vl_zscan *zscan, struct vl_zscan_buffer *buffer, unsigned zscan->pipe->bind_rasterizer_state(zscan->pipe, zscan->rs_state); zscan->pipe->bind_blend_state(zscan->pipe, zscan->blend); - zscan->pipe->bind_fragment_sampler_states(zscan->pipe, 3, zscan->samplers); + if (zscan->pipe->bind_sampler_states) + zscan->pipe->bind_sampler_states(zscan->pipe, PIPE_SHADER_FRAGMENT, + 0, 3, zscan->samplers); + else + zscan->pipe->bind_fragment_sampler_states(zscan->pipe, 3, + zscan->samplers); zscan->pipe->set_framebuffer_state(zscan->pipe, &buffer->fb_state); zscan->pipe->set_viewport_states(zscan->pipe, 0, 1, &buffer->viewport); zscan->pipe->set_fragment_sampler_views(zscan->pipe, 3, &buffer->src); |