summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-09-12 15:36:51 -0600
committerBrian Paul <brianp@vmware.com>2013-09-12 18:14:15 -0600
commite05d83e3ecbb4cd5743f3d29851846a0d1e1b806 (patch)
tree950bc74c97455f5b2f30fd7ba500ff8bbe9772c2
parentd5e974b6a4d3b4a1d462995b186fb217c9f5ab3a (diff)
galahad: remove old bind_*_sampler_states() functions
-rw-r--r--src/gallium/drivers/galahad/glhd_context.c51
1 files changed, 1 insertions, 50 deletions
diff --git a/src/gallium/drivers/galahad/glhd_context.c b/src/gallium/drivers/galahad/glhd_context.c
index ceefd1c999..d96f39f8f1 100644
--- a/src/gallium/drivers/galahad/glhd_context.c
+++ b/src/gallium/drivers/galahad/glhd_context.c
@@ -197,54 +197,9 @@ galahad_context_bind_sampler_states(struct pipe_context *_pipe,
num_samplers, PIPE_MAX_SAMPLERS);
}
- if (pipe->bind_sampler_states) {
- pipe->bind_sampler_states(pipe, shader, start, num_samplers, samplers);
- }
- else {
- switch (shader) {
- case PIPE_SHADER_VERTEX:
- pipe->bind_vertex_sampler_states(pipe, num_samplers, samplers);
- break;
- case PIPE_SHADER_FRAGMENT:
- pipe->bind_fragment_sampler_states(pipe, num_samplers, samplers);
- break;
- case PIPE_SHADER_GEOMETRY:
- pipe->bind_geometry_sampler_states(pipe, num_samplers, samplers);
- break;
- default:
- assert(0);
- }
- }
-}
-
-static void
-galahad_context_bind_vertex_sampler_states(struct pipe_context *_pipe,
- unsigned num_samplers,
- void **samplers)
-{
- galahad_context_bind_sampler_states(_pipe, PIPE_SHADER_VERTEX,
- 0, num_samplers, samplers);
-}
-
-static void
-galahad_context_bind_fragment_sampler_states(struct pipe_context *_pipe,
- unsigned num_samplers,
- void **samplers)
-{
- galahad_context_bind_sampler_states(_pipe, PIPE_SHADER_FRAGMENT,
- 0, num_samplers, samplers);
-}
-
-static void
-galahad_context_bind_geometry_sampler_states(struct pipe_context *_pipe,
- unsigned num_samplers,
- void **samplers)
-{
- galahad_context_bind_sampler_states(_pipe, PIPE_SHADER_GEOMETRY,
- 0, num_samplers, samplers);
+ pipe->bind_sampler_states(pipe, shader, start, num_samplers, samplers);
}
-
static void
galahad_context_delete_sampler_state(struct pipe_context *_pipe,
void *sampler)
@@ -1058,10 +1013,6 @@ galahad_context_create(struct pipe_screen *_screen, struct pipe_context *pipe)
GLHD_PIPE_INIT(delete_blend_state);
GLHD_PIPE_INIT(create_sampler_state);
GLHD_PIPE_INIT(bind_sampler_states);
- GLHD_PIPE_INIT(bind_fragment_sampler_states);
- GLHD_PIPE_INIT(bind_vertex_sampler_states);
- GLHD_PIPE_INIT(bind_geometry_sampler_states);
- //GLHD_PIPE_INIT(bind_compute_sampler_states);
GLHD_PIPE_INIT(delete_sampler_state);
GLHD_PIPE_INIT(create_rasterizer_state);
GLHD_PIPE_INIT(bind_rasterizer_state);