Mesa (master): st/mesa: use min_index and max_index directly from vbo
Marek Olšák
mareko at kemper.freedesktop.org
Fri Apr 28 19:47:08 UTC 2017
Module: Mesa
Branch: master
Commit: c3f37e9b50014e4230ff03b2f4c7788b720bd6a4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c3f37e9b50014e4230ff03b2f4c7788b720bd6a4
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Apr 26 00:28:29 2017 +0200
st/mesa: use min_index and max_index directly from vbo
also remove the incorrect comment about primitive restart.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
---
src/mesa/state_tracker/st_draw.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index d710284b11..e510d437ba 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -207,14 +207,9 @@ st_draw_vbo(struct gl_context *ctx,
setup_index_buffer(st, ib);
info.indexed = TRUE;
- if (min_index != ~0U && max_index != ~0U) {
- info.min_index = min_index;
- info.max_index = max_index;
- }
+ info.min_index = min_index;
+ info.max_index = max_index;
- /* The VBO module handles restart for the non-indexed GLDrawArrays
- * so we only set these fields for indexed drawing:
- */
setup_primitive_restart(ctx, &info, ib->index_size);
}
else {
More information about the mesa-commit
mailing list