On 13 March 2012 11:33, Chad Versace <span dir="ltr"><<a href="mailto:chad.versace@linux.intel.com">chad.versace@linux.intel.com</a>></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>
> This patch adds descriptions of the extensions<br>
> OES_compressed_paletted_texture, ATI_texture_compression_3dc, and<br>
> NVX_gpu_memory_info to the OpenGL API spec files. The extension<br>
> OES_compressed_paletted_texture was previously commented out (since it<br>
> is part of GLES), and the others weren't present at all.<br>
> ---<br>
> glapi/enumext.spec | 31 +++++++++++++++++++++----------<br>
> 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'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 <<a href="mailto:chad.versace@linux.intel.com">chad.versace@linux.intel.com</a>><br></blockquote><div><br>I added the tokens because they were needed to compile Piglit. I'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> "spec/OES_compressed_paletted_texture/invalid formats". 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 "spec/ARB_texture_compression/unknown formats".<br>
<br>- NVX_gpu_memory_info: These enums are required to compile the file<br> "tests/util/piglit-util-enum.c".<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>
><br>
> diff --git a/glapi/enumext.spec b/glapi/enumext.spec<br>
> index ead6983..ed70c78 100644<br>
> --- a/glapi/enumext.spec<br>
> +++ b/glapi/enumext.spec<br>
> @@ -6063,16 +6063,16 @@ ATI_vertex_attrib_array_object enum:<br>
><br>
> # Extension #294 - OpenGL ES only, not in glext.h<br>
> # OES_compressed_paletted_texture enum:<br>
> -# PALETTE4_RGB8_OES = 0x8B90<br>
> -# PALETTE4_RGBA8_OES = 0x8B91<br>
> -# PALETTE4_R5_G6_B5_OES = 0x8B92<br>
> -# PALETTE4_RGBA4_OES = 0x8B93<br>
> -# PALETTE4_RGB5_A1_OES = 0x8B94<br>
> -# PALETTE8_RGB8_OES = 0x8B95<br>
> -# PALETTE8_RGBA8_OES = 0x8B96<br>
> -# PALETTE8_R5_G6_B5_OES = 0x8B97<br>
> -# PALETTE8_RGBA4_OES = 0x8B98<br>
> -# PALETTE8_RGB5_A1_OES = 0x8B99<br>
> + PALETTE4_RGB8_OES = 0x8B90<br>
> + PALETTE4_RGBA8_OES = 0x8B91<br>
> + PALETTE4_R5_G6_B5_OES = 0x8B92<br>
> + PALETTE4_RGBA4_OES = 0x8B93<br>
> + PALETTE4_RGB5_A1_OES = 0x8B94<br>
> + PALETTE8_RGB8_OES = 0x8B95<br>
> + PALETTE8_RGBA8_OES = 0x8B96<br>
> + PALETTE8_R5_G6_B5_OES = 0x8B97<br>
> + PALETTE8_RGBA4_OES = 0x8B98<br>
> + PALETTE8_RGB5_A1_OES = 0x8B99<br>
><br>
> ###############################################################################<br>
><br>
> @@ -7323,3 +7323,14 @@ AMD_stencil_operation_extended enum:<br>
> STENCIL_OP_VALUE_AMD = 0x874C<br>
> STENCIL_BACK_OP_VALUE_AMD = 0x874D<br>
><br>
> +# Extension #???<br>
> +ATI_texture_compression_3dc enum:<br>
> + COMPRESSED_LUMINANCE_ALPHA_3DC_ATI = 0x8837<br>
> +<br>
> +# Extension #???<br>
> +NVX_gpu_memory_info enum:<br>
> + GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX = 0x9047<br>
> + GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX = 0x9048<br>
> + GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX = 0x9049<br>
> + GPU_MEMORY_INFO_EVICTION_COUNT_NVX = 0x904A<br>
> + GPU_MEMORY_INFO_EVICTED_MEMORY_NVX = 0x904B<br>
</div></div></blockquote></div><br>