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/include/pipe/p_context.h | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'src/gallium/include') diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h index 9d6b9b5db49..af64f4b3fb9 100644 --- a/src/gallium/include/pipe/p_context.h +++ b/src/gallium/include/pipe/p_context.h @@ -213,21 +213,9 @@ struct pipe_context { unsigned num_viewports, const struct pipe_viewport_state *); - void (*set_fragment_sampler_views)(struct pipe_context *, - unsigned num_views, - struct pipe_sampler_view **); - - void (*set_vertex_sampler_views)(struct pipe_context *, - unsigned num_views, - struct pipe_sampler_view **); - - void (*set_geometry_sampler_views)(struct pipe_context *, - unsigned num_views, - struct pipe_sampler_view **); - - void (*set_compute_sampler_views)(struct pipe_context *, - unsigned start_slot, unsigned num_views, - struct pipe_sampler_view **); + void (*set_sampler_views)(struct pipe_context *, unsigned shader, + unsigned start_slot, unsigned num_views, + struct pipe_sampler_view **); /** * Bind an array of shader resources that will be used by the -- cgit v1.2.3