summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-12-04 00:36:00 -0500
committerEmil Velikov <[email protected]>2014-12-11 13:54:52 +0000
commitc6353cee0ca943280d76f6dd385f835fef1007a6 (patch)
treec6b930b47d09be857cccd52f9b505b4c7651c5fb /src
parent09e4f1a50feb11a246e87c05a371b89f5199e667 (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]> (cherry picked from commit 1dfa0391689d71a379cc47a7f39b5f8b0318f891)
Diffstat (limited to 'src')
-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,