On Fri, Apr 14, 2017 at 5:45 PM, Ilia Mirkin <imir...@alum.mit.edu> wrote: > On Fri, Apr 14, 2017 at 11:07 AM, Marek Olšák <mar...@gmail.com> wrote: >> diff --git a/src/gallium/drivers/nouveau/nv30/nv30_vbo.c >> b/src/gallium/drivers/nouveau/nv30/nv30_vbo.c >> index bc9b9a1..295c394 100644 >> --- a/src/gallium/drivers/nouveau/nv30/nv30_vbo.c >> +++ b/src/gallium/drivers/nouveau/nv30/nv30_vbo.c >> @@ -543,20 +543,23 @@ nv30_draw_elements(struct nv30_context *nv30, bool >> shorten, >> } >> } >> >> static void >> nv30_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info) >> { >> struct nv30_context *nv30 = nv30_context(pipe); >> struct nouveau_pushbuf *push = nv30->base.pushbuf; >> int i; >> >> + if (!u_trim_pipe_prim(info->mode, (unsigned*)&info->count)) >> + return; >> + > > Should this also have a !info->primitive_restart? It's supported on > nv4x (covered by this driver).
In that case, I wonder if u_trim_pipe_prim is required with this driver. It might be better to just remove that call. Marek _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev