From a3ed98f7aa85636579a5696bf036ec13e5c9104a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 7 Oct 2013 18:16:22 -0600 Subject: gallium: new, unified pipe_context::set_sampler_views() function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Marek Olšák Tested-by: Emil Velikov --- src/gallium/drivers/svga/svga_pipe_sampler.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/gallium/drivers/svga') diff --git a/src/gallium/drivers/svga/svga_pipe_sampler.c b/src/gallium/drivers/svga/svga_pipe_sampler.c index b64e8138efb..805e23b18ee 100644 --- a/src/gallium/drivers/svga/svga_pipe_sampler.c +++ b/src/gallium/drivers/svga/svga_pipe_sampler.c @@ -289,21 +289,12 @@ svga_set_sampler_views(struct pipe_context *pipe, } -static void -svga_set_fragment_sampler_views(struct pipe_context *pipe, - unsigned num, - struct pipe_sampler_view **views) -{ - svga_set_sampler_views(pipe, PIPE_SHADER_FRAGMENT, 0, num, views); -} - - void svga_init_sampler_functions( struct svga_context *svga ) { svga->pipe.create_sampler_state = svga_create_sampler_state; svga->pipe.bind_sampler_states = svga_bind_sampler_states; svga->pipe.delete_sampler_state = svga_delete_sampler_state; - svga->pipe.set_fragment_sampler_views = svga_set_fragment_sampler_views; + svga->pipe.set_sampler_views = svga_set_sampler_views; svga->pipe.create_sampler_view = svga_create_sampler_view; svga->pipe.sampler_view_destroy = svga_sampler_view_destroy; } -- cgit v1.2.3