[Freedreno] [PATCH 1/2] util/primconvert: pass index bias through
Ilia Mirkin
imirkin at alum.mit.edu
Wed Dec 3 22:00:55 PST 2014
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 <imirkin at alum.mit.edu>
---
src/gallium/auxiliary/indices/u_primconvert.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/auxiliary/indices/u_primconvert.c b/src/gallium/auxiliary/indices/u_primconvert.c
index 09e0b97..539ca53 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;
new_info.start_instance = info->start_instance;
new_info.instance_count = info->instance_count;
--
2.0.4
More information about the Freedreno
mailing list