[Mesa-dev] [RFC] gallium/auxiliary: u_primconvert for GL_QUADS

Rob Clark robdclark at gmail.com
Thu Oct 24 22:24:30 CEST 2013


On Thu, Oct 24, 2013 at 3:26 PM, Brian Paul <brianp at vmware.com> wrote:
> 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.

ahh.. from a quick look, I think this should work.. just need to
figure out how to use it ;-)

BR,
-R

> -Brian
>
>


More information about the mesa-dev mailing list