[Mesa-dev] [RFC] gallium/auxiliary: u_primconvert for GL_QUADS
Brian Paul
brianp at vmware.com
Thu Oct 24 21:26:52 CEST 2013
On 10/24/2013 11:44 AM, Rob Clark wrote:
> From: Rob Clark <robclark at freedesktop.org>
>
> A utility to turn quads into tri's + index buffer, which can be used by
> drivers for hardware which does not natively support quads.
>
> Signed-off-by: Rob Clark <robclark at freedesktop.org>
We already have some code for this. Check out the u_indices.c code.
The svga driver uses this to convert QUADS into indexed triangles, etc.
Keith wrote the original code so I don't know the details but I at
least added some comments a while back.
-Brian
More information about the mesa-dev
mailing list