summaryrefslogtreecommitdiffstats
path: root/src/gallium/tools
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2013-12-05 13:29:29 +0000
committerJosé Fonseca <[email protected]>2013-12-05 13:35:06 +0000
commit3be333ed30e8a415c02befabe12832b5f6157fbb (patch)
tree0304dc068dfa22b1004cb9770c16d7fae6b5397b /src/gallium/tools
parent9648b76dc42ce74014fbaaeed57c993fd7e649a7 (diff)
tools/trace: More tweaks to state dumping.
- Ignore buffer format (it is totally arbitrary) - Initialize state. - Handle begin/end_query statements.
Diffstat (limited to 'src/gallium/tools')
-rwxr-xr-xsrc/gallium/tools/trace/dump_state.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/gallium/tools/trace/dump_state.py b/src/gallium/tools/trace/dump_state.py
index 293d609da2f..5257100da50 100755
--- a/src/gallium/tools/trace/dump_state.py
+++ b/src/gallium/tools/trace/dump_state.py
@@ -199,9 +199,8 @@ class Screen(Dispatcher):
if resource.target == PIPE_BUFFER:
# We will keep track of buffer contents
resource.data = bytearray(resource.width)
- if resource.width == 1 and resource.height == 1 and resource.depth == 1:
- # Ignore dummy texture
- return None
+ # Ignore format
+ del resource.format
return resource
def resource_destroy(self, resource):
@@ -233,6 +232,7 @@ class Context(Dispatcher):
self._state.scissors = []
self._state.viewports = []
self._state.vertex_buffers = []
+ self._state.vertex_elements = []
self._state.vs = Struct()
self._state.gs = Struct()
self._state.fs = Struct()
@@ -248,6 +248,8 @@ class Context(Dispatcher):
self._state.vs.constant_buffer = []
self._state.gs.constant_buffer = []
self._state.fs.constant_buffer = []
+ self._state.render_condition_condition = 0
+ self._state.render_condition_mode = 0
self._draw_no = 0
@@ -653,6 +655,7 @@ class Context(Dispatcher):
pass
def create_surface(self, resource, surf_tmpl):
+ assert resource is not None
surf_tmpl.resource = resource
return surf_tmpl
@@ -665,6 +668,12 @@ class Context(Dispatcher):
def destroy_query(self, query):
pass
+ def begin_query(self, query):
+ pass
+
+ def end_query(self, query):
+ pass
+
def create_stream_output_target(self, res, buffer_offset, buffer_size):
so_target = Struct()
so_target.resource = res