From: Marek Olšák Date: Tue, 17 Jul 2018 05:50:42 +0000 (-0400) Subject: st/mesa: notify u_vbuf/driver that draw index bounds are unknown for indirect X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=201ebf51d1dbea6474dd19524e634b823cb391d7;p=mesa.git st/mesa: notify u_vbuf/driver that draw index bounds are unknown for indirect Reviewed-by: Eric Anholt --- diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index dee69783ada..eb52d9505b6 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -261,6 +261,7 @@ st_indirect_draw_vbo(struct gl_context *ctx, memset(&indirect, 0, sizeof(indirect)); util_draw_init_info(&info); info.start = 0; /* index offset / index size */ + info.max_index = ~0u; /* so that u_vbuf can tell that it's unknown */ if (ib) { struct gl_buffer_object *bufobj = ib->obj;