[Piglit] [PATCH] Helper function to convert an arbitrary GL enum to a string.
jfonseca at vmware.com
Thu Feb 2 07:18:47 PST 2012
----- Original Message -----
> On 02/02/2012 08:04 AM, Jose Fonseca wrote:
> > (The patch was very long so I've just copy'n'pasted a snippet here.
> > Jose
> > commit 03e922dfcdcfadc5801bb027224cec9ab77b2d4d
> > Author: José Fonseca<jfonseca at vmware.com>
> > Date: Thu Feb 2 15:02:12 2012 +0000
> > util: Helper function to convert an arbitrary GL enum to a
> > string.
> Excellent! I was hoping someone would write this someday.
> How was piglit-util-enum.c made? Shouldn't we have a generator
> for this?
It was semi-manually derived from apitrace's spec/gtypes.py, which was semi-automatically derived from Khronos glenum.spec + OES.
We could have the machinery to generate this from Khronos' enum.spec , or Mesa's XML, but there are many tradeoffs so I took the fastest route for me. I can add a TODO comment for that effect, but I believe that it will take some time until we actually need to update the list.
More information about the Piglit