Module: Mesa Branch: master Commit: b9ac72b5116d25529fc19bd849e85d5d91413f66 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9ac72b5116d25529fc19bd849e85d5d91413f66
Author: Miklós Máté <mtm...@gmail.com> Date: Fri Aug 26 06:48:00 2016 -0600 vbo: set draw_id Fixes conditional jump depending on uninitialized value in si_state_draw.c:593 Cc: <mesa-sta...@lists.freedesktop.org> Signed-off-by: Miklós Máté <mtm...@gmail.com> Reviewed-by: Brian Paul <bri...@vmware.com> --- src/mesa/vbo/vbo_exec_array.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index 1997039..46543f8 100644 --- a/src/mesa/vbo/vbo_exec_array.c +++ b/src/mesa/vbo/vbo_exec_array.c @@ -778,6 +778,7 @@ vbo_validated_drawrangeelements(struct gl_context *ctx, GLenum mode, prim[0].basevertex = basevertex; prim[0].num_instances = numInstances; prim[0].base_instance = baseInstance; + prim[0].draw_id = 0; /* Need to give special consideration to rendering a range of * indices starting somewhere above zero. Typically the _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit