diff options
author | Brian Paul <[email protected]> | 2013-10-07 18:16:22 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-10-23 10:15:38 -0600 |
commit | a3ed98f7aa85636579a5696bf036ec13e5c9104a (patch) | |
tree | 104078a2a8b875e5ec7c5524e7797d46d109d7e0 /src/gallium/drivers/softpipe | |
parent | b11fc226e6b106de8eb777a8e62c4f7303c66fbc (diff) |
gallium: new, unified pipe_context::set_sampler_views() function
The new function replaces four old functions: set_fragment/vertex/
geometry/compute_sampler_views().
Note: at this time, it's expected that the 'start' parameter will
always be zero.
Reviewed-by: Roland Scheidegger <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Tested-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_state_sampler.c | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/src/gallium/drivers/softpipe/sp_state_sampler.c b/src/gallium/drivers/softpipe/sp_state_sampler.c index be9d6457c88..dde7c1396d9 100644 --- a/src/gallium/drivers/softpipe/sp_state_sampler.c +++ b/src/gallium/drivers/softpipe/sp_state_sampler.c @@ -166,33 +166,6 @@ softpipe_set_sampler_views(struct pipe_context *pipe, static void -softpipe_set_fragment_sampler_views(struct pipe_context *pipe, - unsigned num, - struct pipe_sampler_view **views) -{ - softpipe_set_sampler_views(pipe, PIPE_SHADER_FRAGMENT, 0, num, views); -} - - -static void -softpipe_set_vertex_sampler_views(struct pipe_context *pipe, - unsigned num, - struct pipe_sampler_view **views) -{ - softpipe_set_sampler_views(pipe, PIPE_SHADER_VERTEX, 0, num, views); -} - - -static void -softpipe_set_geometry_sampler_views(struct pipe_context *pipe, - unsigned num, - struct pipe_sampler_view **views) -{ - softpipe_set_sampler_views(pipe, PIPE_SHADER_GEOMETRY, 0, num, views); -} - - -static void softpipe_delete_sampler_state(struct pipe_context *pipe, void *sampler) { @@ -207,11 +180,8 @@ softpipe_init_sampler_funcs(struct pipe_context *pipe) pipe->bind_sampler_states = softpipe_bind_sampler_states; pipe->delete_sampler_state = softpipe_delete_sampler_state; - pipe->set_fragment_sampler_views = softpipe_set_fragment_sampler_views; - pipe->set_vertex_sampler_views = softpipe_set_vertex_sampler_views; - pipe->set_geometry_sampler_views = softpipe_set_geometry_sampler_views; - pipe->create_sampler_view = softpipe_create_sampler_view; + pipe->set_sampler_views = softpipe_set_sampler_views; pipe->sampler_view_destroy = softpipe_sampler_view_destroy; } |