[Mesa-dev] primitive-restart branch

Marek Olšák maraeo at gmail.com
Thu Jul 15 01:52:55 PDT 2010


On Thu, Jul 15, 2010 at 9:57 AM, Chia-I Wu <olvaffe at gmail.com> wrote:

> On Thu, Jul 15, 2010 at 10:26 AM, Brian Paul <brian.e.paul at gmail.com>
> wrote:
> > I've pushed a branch which implements the GL_NV_primitive_restart
> > extension (part of GL 3.1).
> >
> > It currently works for Gallium softpipe and llvmpipe but there's still
> > a few loose ends.
> >
> > The new gallium interface for this isn't finalized.  It might make
> > sense to put the new enable/index state into pipe_rasterizer_state.
> > I'm not sure how often apps might change the restart index (i.e. how
> > constant is it?).  Comments are welcome.
> I am wondering if it is a better place to support primitive restart in
> draw_pt_vcache_tmp.h instead of in draw_pt_vcache.c.  The restart index
> should
> be compared before elt_bias, and the extension should also support other
> primitive modes that are less useful (TRIANGLES, LINES, ...).
>

FWIW elt_bias has never worked in Draw (it misrenders and segfaults), with
the attached patch. r300g works fine.

-Marek

 > I also committed a new piglit test for this feature: primitive-restart.c
> >
> > -Brian
>
> --
> olv at LunarG.com
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100715/0b574e7c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-st-mesa-implement-and-advertise-GL_ARB_draw_elements.patch
Type: text/x-diff
Size: 2711 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100715/0b574e7c/attachment.patch>


More information about the mesa-dev mailing list