Mesa (gallium-index-bias): st/python: Use index bias.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Mon Apr 19 16:22:36 UTC 2010
Module: Mesa
Branch: gallium-index-bias
Commit: 5620216c984cdbc8983bc1861ebb09380f3467e4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5620216c984cdbc8983bc1861ebb09380f3467e4
Author: José Fonseca <jfonseca at vmware.com>
Date: Mon Apr 19 18:16:34 2010 +0200
st/python: Use index bias.
---
src/gallium/state_trackers/python/p_context.i | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/gallium/state_trackers/python/p_context.i b/src/gallium/state_trackers/python/p_context.i
index 13c8d1a..3c5509c 100644
--- a/src/gallium/state_trackers/python/p_context.i
+++ b/src/gallium/state_trackers/python/p_context.i
@@ -312,22 +312,24 @@ struct st_context {
}
void draw_elements( struct pipe_resource *indexBuffer,
- unsigned indexSize,
+ unsigned indexSize, int indexBias,
unsigned mode, unsigned start, unsigned count)
{
$self->pipe->draw_elements($self->pipe,
indexBuffer,
indexSize,
+ indexBias,
mode, start, count);
}
void draw_range_elements( struct pipe_resource *indexBuffer,
- unsigned indexSize, unsigned minIndex, unsigned maxIndex,
+ unsigned indexSize, int indexBias,
+ unsigned minIndex, unsigned maxIndex,
unsigned mode, unsigned start, unsigned count)
{
$self->pipe->draw_range_elements($self->pipe,
- indexBuffer,
- indexSize, minIndex, maxIndex,
+ indexBuffer, indexSize, indexBias,
+ minIndex, maxIndex,
mode, start, count);
}
More information about the mesa-commit
mailing list