From: Miklós Máté Date: Fri, 26 Aug 2016 12:48:00 +0000 (-0600) Subject: vbo: set draw_id X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9ac72b5116d25529fc19bd849e85d5d91413f66;p=mesa.git vbo: set draw_id Fixes conditional jump depending on uninitialized value in si_state_draw.c:593 Cc: Signed-off-by: Miklós Máté Reviewed-by: Brian Paul --- diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index 1997039f149..46543f8ab00 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