- /* remove this when we have pipe->bind_sampler_states(..., start, ...) */
- assert(start == 0);
-
- switch (shader) {
- case PIPE_SHADER_VERTEX:
- pipe->bind_vertex_sampler_states(pipe, num_samplers, samplers);
- break;
- case PIPE_SHADER_GEOMETRY:
- pipe->bind_geometry_sampler_states(pipe, num_samplers, samplers);
- break;
- case PIPE_SHADER_FRAGMENT:
- pipe->bind_fragment_sampler_states(pipe, num_samplers, samplers);
- break;
- default:
- debug_error("Unexpected shader in identity_bind_sampler_states()");
- }
-}
-
-static void
-identity_bind_fragment_sampler_states(struct pipe_context *_pipe,
- unsigned num_samplers,
- void **samplers)
-{
- identity_bind_sampler_states(_pipe, PIPE_SHADER_FRAGMENT,
- 0, num_samplers, samplers);
-}
-
-static void
-identity_bind_vertex_sampler_states(struct pipe_context *_pipe,
- unsigned num_samplers,
- void **samplers)
-{
- identity_bind_sampler_states(_pipe, PIPE_SHADER_VERTEX,
- 0, num_samplers, samplers);
+ pipe->bind_sampler_states(pipe, shader, start, num_samplers, samplers);