Re: [Mesa-dev] [PATCH 2/7] nvc0: only update primitive restart for indexed draws

2016-11-07 Thread Samuel Pitoiset
On 11/07/2016 04:34 AM, Ilia Mirkin wrote: Primitive restart is a thing for non-indexed draws too. There's a method that controls it - NVC0_3D_PRIM_RESTART_WITH_DRAW_ARRAYS. The more recently GL 4.5 behaviour is to *not* do primitive restart for draw arrays, however the older behavior is to do

Re: [Mesa-dev] [PATCH 2/7] nvc0: only update primitive restart for indexed draws

2016-11-06 Thread Ilia Mirkin
Primitive restart is a thing for non-indexed draws too. There's a method that controls it - NVC0_3D_PRIM_RESTART_WITH_DRAW_ARRAYS. The more recently GL 4.5 behaviour is to *not* do primitive restart for draw arrays, however the older behavior is to do it. I don't think there's clear direction on th

[Mesa-dev] [PATCH 2/7] nvc0: only update primitive restart for indexed draws

2016-10-25 Thread Samuel Pitoiset
Unnecessary to update it at every draw calls, especially for non-indexed draws. This is similar to what nv50 already does. Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/n