<div dir="ltr"><div><div>For the series:<br><br></div>Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>><br><br></div>Marek<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 17, 2016 at 11:12 PM, Ilia Mirkin <span dir="ltr"><<a href="mailto:imirkin@alum.mit.edu" target="_blank">imirkin@alum.mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The max basevertex is already computed and added into max_index by the<br>
caller, _tnl_draw_prims.<br>
<br>
Signed-off-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>><br>
---<br>
src/mesa/vbo/vbo_split.c | 8 --------<br>
1 file changed, 8 deletions(-)<br>
<br>
diff --git a/src/mesa/vbo/vbo_split.c b/src/mesa/vbo/vbo_split.c<br>
index 2f95746..79d7dd4 100644<br>
--- a/src/mesa/vbo/vbo_split.c<br>
+++ b/src/mesa/vbo/vbo_split.c<br>
@@ -108,14 +108,6 @@ void vbo_split_prims( struct gl_context *ctx,<br>
vbo_draw_func draw,<br>
const struct split_limits *limits )<br>
{<br>
- GLint max_basevertex = prim->basevertex;<br>
- GLuint i;<br>
-<br>
- for (i = 1; i < nr_prims; i++)<br>
- max_basevertex = MAX2(max_basevertex, prim[i].basevertex);<br>
-<br>
- /* XXX max_basevertex is computed but not used, why? */<br>
-<br>
if (ib) {<br>
if (limits->max_indices == 0) {<br>
/* Could traverse the indices, re-emitting vertices in turn.<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.7.3<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>