summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-04-19 18:17:11 +0200
committerJosé Fonseca <jfonseca@vmware.com>2010-04-19 18:17:11 +0200
commit583f51ba4bb1029d9d4f338ca3c8f4702ab6666c (patch)
tree805ef5b0f0f19f767227d497e8e8c6aab540fe3c /src
parent17a43c1718605e4c95bcd7f554b0a5b8293d2578 (diff)
retrace: Support index bias.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/gallium/tests/python/retrace/interpreter.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gallium/tests/python/retrace/interpreter.py b/src/gallium/tests/python/retrace/interpreter.py
index 88b3bbd143b..7118ff85ed8 100755
--- a/src/gallium/tests/python/retrace/interpreter.py
+++ b/src/gallium/tests/python/retrace/interpreter.py
@@ -496,7 +496,7 @@ class Context(Object):
sys.stdout.write('\t},\n')
sys.stdout.flush()
- def dump_indices(self, ibuf, isize, start, count):
+ def dump_indices(self, ibuf, isize, ibias, start, count):
if not self.interpreter.verbosity(2):
return
@@ -524,7 +524,7 @@ class Context(Object):
sys.stdout.write('\t},\n')
sys.stdout.flush()
- return minindex, maxindex
+ return minindex + ibias, maxindex + ibias
def draw_arrays(self, mode, start, count):
self.dump_vertices(start, count)
@@ -532,22 +532,22 @@ class Context(Object):
self.real.draw_arrays(mode, start, count)
self._set_dirty()
- def draw_elements(self, indexBuffer, indexSize, mode, start, count):
+ def draw_elements(self, indexBuffer, indexSize, indexBias, mode, start, count):
if self.interpreter.verbosity(2):
- minindex, maxindex = self.dump_indices(indexBuffer, indexSize, start, count)
+ minindex, maxindex = self.dump_indices(indexBuffer, indexSize, indexBias, start, count)
self.dump_vertices(minindex, maxindex - minindex)
- self.real.draw_elements(indexBuffer, indexSize, mode, start, count)
+ self.real.draw_elements(indexBuffer, indexSize, indexBias, mode, start, count)
self._set_dirty()
- def draw_range_elements(self, indexBuffer, indexSize, minIndex, maxIndex, mode, start, count):
+ def draw_range_elements(self, indexBuffer, indexSize, indexBias, minIndex, maxIndex, mode, start, count):
if self.interpreter.verbosity(2):
- minindex, maxindex = self.dump_indices(indexBuffer, indexSize, start, count)
+ minindex, maxindex = self.dump_indices(indexBuffer, indexSize, indexBias, start, count)
minindex = min(minindex, minIndex)
maxindex = min(maxindex, maxIndex)
self.dump_vertices(minindex, maxindex - minindex)
- self.real.draw_range_elements(indexBuffer, indexSize, minIndex, maxIndex, mode, start, count)
+ self.real.draw_range_elements(indexBuffer, indexSize, indexBias, minIndex, maxIndex, mode, start, count)
self._set_dirty()
def surface_copy(self, dest, destx, desty, src, srcx, srcy, width, height):