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/tools | |
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 <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/tools')
-rwxr-xr-x | src/gallium/tools/trace/dump_state.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/gallium/tools/trace/dump_state.py b/src/gallium/tools/trace/dump_state.py index d4df2e09ea..8c3bdabdc8 100755 --- a/src/gallium/tools/trace/dump_state.py +++ b/src/gallium/tools/trace/dump_state.py @@ -243,9 +243,7 @@ class Context(Dispatcher): self._state.vs.sampler = [] self._state.gs.sampler = [] self._state.fs.sampler = [] - self._state.vs.sampler_views = [] - self._state.gs.sampler_views = [] - self._state.fs.sampler_views = [] + self._state.sampler_views = {} self._state.vs.constant_buffer = [] self._state.gs.constant_buffer = [] self._state.fs.constant_buffer = [] @@ -400,14 +398,8 @@ class Context(Dispatcher): def sampler_view_destroy(self, view): pass - def set_fragment_sampler_views(self, num, views): - self._state.fs.sampler_views = views - - def set_geometry_sampler_views(self, num, views): - self._state.gs.sampler_views = views - - def set_vertex_sampler_views(self, num, views): - self._state.vs.sampler_views = views + def set_sampler_views(self, shader, start, num, views): + self._state.sampler_views[shader] = views def set_vertex_buffers(self, start_slot, num_buffers, buffers): self._update(self._state.vertex_buffers, start_slot, num_buffers, buffers) |