gallium/tools: update dump_state.py to use bind_sampler_states()
authorBrian Paul <brianp@vmware.com>
Fri, 13 Sep 2013 00:11:45 +0000 (18:11 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Oct 2013 20:05:27 +0000 (14:05 -0600)
src/gallium/tools/trace/dump_state.py

index e9b879c1a0f71178444b041ae62e1a96678f4704..d4df2e09eabe57bea6b76bcba53d247aba8d26ea 100755 (executable)
@@ -239,6 +239,7 @@ class Context(Dispatcher):
         self._state.vs.shader = None
         self._state.gs.shader = None
         self._state.fs.shader = None
+        self._state.sampler = {}
         self._state.vs.sampler = []
         self._state.gs.sampler = []
         self._state.fs.sampler = []
@@ -280,14 +281,8 @@ class Context(Dispatcher):
     def delete_sampler_state(self, state):
         pass
 
-    def bind_vertex_sampler_states(self, num_states, states):
-        self._state.vs.sampler = states
-        
-    def bind_geometry_sampler_states(self, num_states, states):
-        self._state.gs.sampler = states
-        
-    def bind_fragment_sampler_states(self, num_states, states):
-        self._state.fs.sampler = states
+    def bind_sampler_states(self, shader, start, num_states, states):
+        self._state.sampler[shader] = states
         
     def create_rasterizer_state(self, state):
         return state