[Mesa-dev] [PATCH 02/16] glapi: add KHR_blend_equation_advanced dispatch

Francisco Jerez currojerez at riseup.net
Tue Aug 16 21:44:36 UTC 2016


Kenneth Graunke <kenneth at whitecape.org> writes:

> From: Ilia Mirkin <imirkin at alum.mit.edu>
>
> v2 (Ken): Fix enum values, drop _mesa_BlendBarrierKHR stub as Curro has
>           already implemented it.
>
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

Reviewed-by: Francisco Jerez <currojerez at riseup.net>

> ---
>  src/mapi/glapi/gen/gl_API.xml           | 23 +++++++++++++++++++++++
>  src/mesa/main/tests/dispatch_sanity.cpp |  6 ++++++
>  2 files changed, 29 insertions(+)
>
> diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
> index 79e1ba1..0481152 100644
> --- a/src/mapi/glapi/gen/gl_API.xml
> +++ b/src/mapi/glapi/gen/gl_API.xml
> @@ -8294,6 +8294,29 @@
>  <!-- ARB extension 171 -->
>  <xi:include href="ARB_pipeline_statistics_query.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
>  
> +<category name="KHR_blend_equation_advanced" number="174">
> +    <enum name="BLEND_ADVANCED_COHERENT_KHR"              value="0x9285"/>
> +
> +    <enum name="MULTIPLY_KHR"                             value="0x9294"/>
> +    <enum name="SCREEN_KHR"                               value="0x9295"/>
> +    <enum name="OVERLAY_KHR"                              value="0x9296"/>
> +    <enum name="DARKEN_KHR"                               value="0x9297"/>
> +    <enum name="LIGHTEN_KHR"                              value="0x9298"/>
> +    <enum name="COLORDODGE_KHR"                           value="0x9299"/>
> +    <enum name="COLORBURN_KHR"                            value="0x929A"/>
> +    <enum name="HARDLIGHT_KHR"                            value="0x929B"/>
> +    <enum name="SOFTLIGHT_KHR"                            value="0x929C"/>
> +    <enum name="DIFFERENCE_KHR"                           value="0x929E"/>
> +    <enum name="EXCLUSION_KHR"                            value="0x92A0"/>
> +
> +    <enum name="HSL_HUE_KHR"                              value="0x92AD"/>
> +    <enum name="HSL_SATURATION_KHR"                       value="0x92AE"/>
> +    <enum name="HSL_COLOR_KHR"                            value="0x92AF"/>
> +    <enum name="HSL_LUMINOSITY_KHR"                       value="0x92B0"/>
> +
> +    <function name="BlendBarrierKHR" es2="2.0"/>
> +</category>
> +
>  <!-- Non-ARB extensions sorted by extension number. -->
>  
>  <category name="GL_EXT_blend_color" number="2">
> diff --git a/src/mesa/main/tests/dispatch_sanity.cpp b/src/mesa/main/tests/dispatch_sanity.cpp
> index cfbf70d..a0bdd17 100644
> --- a/src/mesa/main/tests/dispatch_sanity.cpp
> +++ b/src/mesa/main/tests/dispatch_sanity.cpp
> @@ -955,6 +955,9 @@ const struct function common_desktop_functions_possible[] = {
>     /* GL_EXT_window_rectangles */
>     { "glWindowRectanglesEXT", 30, -1 },
>  
> +   /* GL_KHR_blend_equation_advanced */
> +   { "glBlendBarrierKHR", 20, -1 },
> +
>     { NULL, 0, -1 }
>  };
>  
> @@ -2322,6 +2325,9 @@ const struct function gles2_functions_possible[] = {
>     { "glGetnUniformivKHR", 20, -1 },
>     { "glGetnUniformuivKHR", 20, -1 },
>  
> +   /* GL_KHR_blend_equation_advanced */
> +   { "glBlendBarrierKHR", 20, -1 },
> +
>     { NULL, 0, -1 }
>  };
>  
> -- 
> 2.9.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160816/ab18b2b1/attachment.sig>


More information about the mesa-dev mailing list