On Monday, February 20, 2017 10:35:36 AM PST Marek Olšák wrote: > From: Marek Olšák <[email protected]> > > --- > src/mesa/vbo/vbo_exec_array.c | 56 > ++++++------------------------------------- > 1 file changed, 7 insertions(+), 49 deletions(-) > > diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c > index 6a96167..30c52d5 100644 > --- a/src/mesa/vbo/vbo_exec_array.c > +++ b/src/mesa/vbo/vbo_exec_array.c > @@ -404,77 +404,35 @@ vbo_bind_arrays(struct gl_context *ctx) > */ > static void > vbo_draw_arrays(struct gl_context *ctx, GLenum mode, GLint start, > GLsizei count, GLuint numInstances, GLuint baseInstance) > { > struct vbo_context *vbo = vbo_context(ctx); > struct _mesa_prim prim[2]; > > vbo_bind_arrays(ctx); > > - /* init most fields to zero */ > + /* OpenGL 4.5 says that primitive restart is ignored with non-indexed > + * draws. > + */
Cool! Yes it does. ES 3.2 also seems to agree. i965 hardware doesn't support primitive restart on non-indexed draws (yet). Apparently neither does AMD hardware. NVIDIA does. So both of us would need this lowering...if it were required. But it isn't, so goodbye code! :) Reviewed-by: Kenneth Graunke <[email protected]>
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
