diff options
author | Brian Paul <brianp@vmware.com> | 2013-10-07 18:16:22 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2013-10-23 10:15:38 -0600 |
commit | a3ed98f7aa85636579a5696bf036ec13e5c9104a (patch) | |
tree | 104078a2a8b875e5ec7c5524e7797d46d109d7e0 /src/gallium/include | |
parent | b11fc226e6b106de8eb777a8e62c4f7303c66fbc (diff) | |
download | external_mesa3d-a3ed98f7aa85636579a5696bf036ec13e5c9104a.zip external_mesa3d-a3ed98f7aa85636579a5696bf036ec13e5c9104a.tar.gz external_mesa3d-a3ed98f7aa85636579a5696bf036ec13e5c9104a.tar.bz2 |
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 <sroland@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_context.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h index 9d6b9b5..af64f4b 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 |