On 13 March 2012 11:33, Chad Versace <span dir="ltr">&lt;<a href="mailto:chad.versace@linux.intel.com">chad.versace@linux.intel.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 03/12/2012 02:41 PM, Paul Berry wrote:<br>
&gt; This patch adds descriptions of the extensions<br>
&gt; OES_compressed_paletted_texture, ATI_texture_compression_3dc, and<br>
&gt; NVX_gpu_memory_info to the OpenGL API spec files.  The extension<br>
&gt; OES_compressed_paletted_texture was previously commented out (since it<br>
&gt; is part of GLES), and the others weren&#39;t present at all.<br>
&gt; ---<br>
&gt;  glapi/enumext.spec |   31 +++++++++++++++++++++----------<br>
&gt;  1 files changed, 21 insertions(+), 10 deletions(-)<br>
<br>
</div>The patch is correct---the macros match those found in glew.h---but<br>
the commit message doesn&#39;t say why you needed to add these extensions.<br>
Are you adding the tokens only because they are present in glew? Because<br>
some Piglit tests use them? With a comment to that effect, this is<br>
<br>
Reviewed-by: Chad Versace &lt;<a href="mailto:chad.versace@linux.intel.com">chad.versace@linux.intel.com</a>&gt;<br></blockquote><div><br>I added the tokens because they were needed to compile Piglit.  I&#39;ve modified the commit message to read as follows:<br>
<br>This patch adds enums for the following extensions to the OpenGL API<br>spec files:<br><br>- OES_compressed_paletted_texture: This extension defines 10 enums,<br>  which are required to compile the test<br>  &quot;spec/OES_compressed_paletted_texture/invalid formats&quot;.  These enums<br>
  were already present in the OpenGL API spec files, but they were<br>  commented out (since they are part of GLES).<br><br>- ATI_texture_compression_3dc: These enums are required to compile the<br>  test &quot;spec/ARB_texture_compression/unknown formats&quot;.<br>
<br>- NVX_gpu_memory_info: These enums are required to compile the file<br>  &quot;tests/util/piglit-util-enum.c&quot;.<br><br><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; diff --git a/glapi/enumext.spec b/glapi/enumext.spec<br>
&gt; index ead6983..ed70c78 100644<br>
&gt; --- a/glapi/enumext.spec<br>
&gt; +++ b/glapi/enumext.spec<br>
&gt; @@ -6063,16 +6063,16 @@ ATI_vertex_attrib_array_object enum:<br>
&gt;<br>
&gt;  # Extension #294 - OpenGL ES only, not in glext.h<br>
&gt;  # OES_compressed_paletted_texture enum:<br>
&gt; -#    PALETTE4_RGB8_OES                               = 0x8B90<br>
&gt; -#    PALETTE4_RGBA8_OES                              = 0x8B91<br>
&gt; -#    PALETTE4_R5_G6_B5_OES                           = 0x8B92<br>
&gt; -#    PALETTE4_RGBA4_OES                              = 0x8B93<br>
&gt; -#    PALETTE4_RGB5_A1_OES                            = 0x8B94<br>
&gt; -#    PALETTE8_RGB8_OES                               = 0x8B95<br>
&gt; -#    PALETTE8_RGBA8_OES                              = 0x8B96<br>
&gt; -#    PALETTE8_R5_G6_B5_OES                           = 0x8B97<br>
&gt; -#    PALETTE8_RGBA4_OES                              = 0x8B98<br>
&gt; -#    PALETTE8_RGB5_A1_OES                            = 0x8B99<br>
&gt; +     PALETTE4_RGB8_OES                               = 0x8B90<br>
&gt; +     PALETTE4_RGBA8_OES                              = 0x8B91<br>
&gt; +     PALETTE4_R5_G6_B5_OES                           = 0x8B92<br>
&gt; +     PALETTE4_RGBA4_OES                              = 0x8B93<br>
&gt; +     PALETTE4_RGB5_A1_OES                            = 0x8B94<br>
&gt; +     PALETTE8_RGB8_OES                               = 0x8B95<br>
&gt; +     PALETTE8_RGBA8_OES                              = 0x8B96<br>
&gt; +     PALETTE8_R5_G6_B5_OES                           = 0x8B97<br>
&gt; +     PALETTE8_RGBA4_OES                              = 0x8B98<br>
&gt; +     PALETTE8_RGB5_A1_OES                            = 0x8B99<br>
&gt;<br>
&gt;  ###############################################################################<br>
&gt;<br>
&gt; @@ -7323,3 +7323,14 @@ AMD_stencil_operation_extended enum:<br>
&gt;       STENCIL_OP_VALUE_AMD                            = 0x874C<br>
&gt;       STENCIL_BACK_OP_VALUE_AMD                       = 0x874D<br>
&gt;<br>
&gt; +# Extension #???<br>
&gt; +ATI_texture_compression_3dc enum:<br>
&gt; +        COMPRESSED_LUMINANCE_ALPHA_3DC_ATI           = 0x8837<br>
&gt; +<br>
&gt; +# Extension #???<br>
&gt; +NVX_gpu_memory_info enum:<br>
&gt; +        GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX            = 0x9047<br>
&gt; +        GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX      = 0x9048<br>
&gt; +        GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX    = 0x9049<br>
&gt; +        GPU_MEMORY_INFO_EVICTION_COUNT_NVX              = 0x904A<br>
&gt; +        GPU_MEMORY_INFO_EVICTED_MEMORY_NVX              = 0x904B<br>
</div></div></blockquote></div><br>