[PATCH 2/2] glproto: Add define for GLX_EXT_create_context_es2_profile

Ian Romanick idr at freedesktop.org
Fri May 25 17:23:56 PDT 2012


On 05/23/2012 05:06 PM, Matt Turner wrote:
> On Wed, May 23, 2012 at 4:51 PM, Ian Romanick<idr at freedesktop.org>  wrote:
>> From: Ian Romanick<ian.d.romanick at intel.com>
>>
>> Signed-off-by: Ian Romanick<ian.d.romanick at intel.com>
>> ---
>>   glxtokens.h |    2 ++
>>   1 files changed, 2 insertions(+), 0 deletions(-)
>>
>> diff --git a/glxtokens.h b/glxtokens.h
>> index cc4bca3..5e6bbea 100644
>> --- a/glxtokens.h
>> +++ b/glxtokens.h
>> @@ -286,6 +286,7 @@ extern "C" {
>>   /*
>>   * GLX_ARB_create_context
>>   * GLX_ARB_create_context_profile
>> + * GLX_EXT_create_context_es2_profile
>>   */
>>   #define GLX_CONTEXT_MAJOR_VERSION_ARB      0x2091
>>   #define GLX_CONTEXT_MINOR_VERSION_ARB      0x2092
>> @@ -297,6 +298,7 @@ extern "C" {
>>
>>   #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB   0x0001
>>   #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB   0x0002
>> +#define GLX_CONTEXT_ES2_PROFILE_BIT_EXT    0x0004
>>
>>   /*
>>   * GLX_ARB_create_context_robustness
>> --
>> 1.7.6.5
>
> Reviewed-by: Matt Turner<mattst88 at gmail.com>
>
> Is there any significance to the number of leading zeros in definition
> in http://www.opengl.org/registry/specs/EXT/glx_create_context_es2_profile.txt
> ?

The profile mask (sigh...) is a 32-bit field.  I only put four digits in 
glxtokens.h because it matches the other profiles already there.  I also 
don't expect there to be more than 16 profiles any time soon.  When / if 
that happens, we can add the leading zeros to the others.


More information about the xorg-devel mailing list