summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_state.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-09-12 15:45:52 -0600
committerBrian Paul <brianp@vmware.com>2013-10-03 14:05:28 -0600
commit27c054edf0ae92c8c498830e7c7510fa94f5dcfd (patch)
tree15d0424ebf93a70152aeb5c9b472da7b854c3e15 /src/gallium/drivers/r300/r300_state.c
parent1e8d3eb08d6dd9660e2bf86119c36a941ef74d94 (diff)
downloadexternal_mesa3d-27c054edf0ae92c8c498830e7c7510fa94f5dcfd.zip
external_mesa3d-27c054edf0ae92c8c498830e7c7510fa94f5dcfd.tar.gz
external_mesa3d-27c054edf0ae92c8c498830e7c7510fa94f5dcfd.tar.bz2
radeon: don't use old bind_vertex/fragment_sampler_states() hooks
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r--src/gallium/drivers/r300/r300_state.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index e10ea16..4aebbea 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -1522,25 +1522,6 @@ static void*
return (void*)sampler;
}
-static void r300_bind_fragment_sampler_states(struct pipe_context* pipe,
- unsigned count,
- void** states)
-{
- struct r300_context* r300 = r300_context(pipe);
- struct r300_textures_state* state =
- (struct r300_textures_state*)r300->textures_state.state;
- unsigned tex_units = r300->screen->caps.num_tex_units;
-
- if (count > tex_units) {
- return;
- }
-
- memcpy(state->sampler_states, states, sizeof(void*) * count);
- state->sampler_state_count = count;
-
- r300_mark_atom_dirty(r300, &r300->textures_state);
-}
-
static void r300_bind_sampler_states(struct pipe_context* pipe,
unsigned shader,
unsigned start, unsigned count,
@@ -2183,8 +2164,6 @@ void r300_init_state_functions(struct r300_context* r300)
r300->context.create_sampler_state = r300_create_sampler_state;
r300->context.bind_sampler_states = r300_bind_sampler_states;
- r300->context.bind_fragment_sampler_states = r300_bind_fragment_sampler_states;
- r300->context.bind_vertex_sampler_states = r300_lacks_vertex_textures;
r300->context.delete_sampler_state = r300_delete_sampler_state;
r300->context.set_fragment_sampler_views = r300_set_fragment_sampler_views;