summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/indices
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-12-04 00:36:00 -0500
committerIlia Mirkin <[email protected]>2014-12-05 07:23:48 -0500
commit1dfa0391689d71a379cc47a7f39b5f8b0318f891 (patch)
tree0e67b5117b4106fdd51e50d9db59718161b24560 /src/gallium/auxiliary/indices
parentae45a5a28d8c8a48e7353e37da2ce28a6f2bdef4 (diff)
util/primconvert: pass index bias through
The index_bias (aka base_vertex) applies to the downstream draw just as much, since the actual index values are never modified. Signed-off-by: Ilia Mirkin <[email protected]> Cc: "10.3 10.4" <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/indices')
-rw-r--r--src/gallium/auxiliary/indices/u_primconvert.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/indices/u_primconvert.c b/src/gallium/auxiliary/indices/u_primconvert.c
index 0b029c97f2c..95a24785c11 100644
--- a/src/gallium/auxiliary/indices/u_primconvert.c
+++ b/src/gallium/auxiliary/indices/u_primconvert.c
@@ -124,6 +124,7 @@ util_primconvert_draw_vbo(struct primconvert_context *pc,
new_info.indexed = true;
new_info.min_index = info->min_index;
new_info.max_index = info->max_index;
+ new_info.index_bias = info->index_bias;
if (info->indexed) {
u_index_translator(pc->primtypes_mask,