aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/python/retrace
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-04-17 15:11:58 +0200
committerJosé Fonseca <[email protected]>2010-04-18 10:36:28 +0200
commitd036e9312fcc1f3ee67740ab2ef828f7b47367d2 (patch)
treef87050bccba99adcbe560496ca0b0dfcef7eeeed /src/gallium/tests/python/retrace
parent53c3c914a786a4a579532671bd9cb79b41cae78d (diff)
retrace: Fix vertex/index/constant buffer dumping.
Diffstat (limited to 'src/gallium/tests/python/retrace')
-rwxr-xr-xsrc/gallium/tests/python/retrace/interpreter.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/tests/python/retrace/interpreter.py b/src/gallium/tests/python/retrace/interpreter.py
index 506a4c5c263..88b3bbd143b 100755
--- a/src/gallium/tests/python/retrace/interpreter.py
+++ b/src/gallium/tests/python/retrace/interpreter.py
@@ -385,7 +385,7 @@ class Context(Object):
if not self.interpreter.verbosity(2):
return
- data = buffer.read()
+ data = self.real.buffer_read(buffer)
format = '4f'
index = 0
for offset in range(0, len(data), struct.calcsize(format)):
@@ -486,10 +486,11 @@ class Context(Object):
gallium.PIPE_FORMAT_R32G32B32A32_FLOAT: '4f',
gallium.PIPE_FORMAT_A8R8G8B8_UNORM: '4B',
gallium.PIPE_FORMAT_R8G8B8A8_UNORM: '4B',
+ gallium.PIPE_FORMAT_B8G8R8A8_UNORM: '4B',
gallium.PIPE_FORMAT_R16G16B16_SNORM: '3h',
}[velem.src_format]
- data = vbuf.buffer.read()
+ data = self.real.buffer_read(vbuf.buffer)
values = unpack_from(format, data, offset)
sys.stdout.write('\t\t{' + ', '.join(map(str, values)) + '},\n')
sys.stdout.write('\t},\n')
@@ -507,7 +508,7 @@ class Context(Object):
assert struct.calcsize(format) == isize
- data = ibuf.read()
+ data = self.real.buffer_read(ibuf)
maxindex, minindex = 0, 0xffffffff
sys.stdout.write('\t{\n')