[Mesa-dev] [PATCH v2 3/6] glapi: Alias VertexAttribDivisor and VertexAttribDivisorARB.

Stéphane Marchesin stephane.marchesin at gmail.com
Wed Oct 24 12:01:10 PDT 2012


Hi Paul,

This change regresses instanced_arrays with i915g, and probably with
llvmpipe as well. Could you take a look?

Thanks,
Stéphane


On Mon, Oct 22, 2012 at 5:22 PM, Paul Berry <stereotype441 at gmail.com> wrote:
> There's no reason to have separate slots in the dispatch table for
> these two functions, since they are synonymous.
>
> Note: previous to this patch, we never populated the dispatch table
> slot for VertexAttribDivisor, which was ok, since it is not required
> until 3.3.  After this patch, both functions will be usable provided
> that the ARB_instanced_arrays extension is present.
> ---
>  src/mapi/glapi/gen/GL3x.xml | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/mapi/glapi/gen/GL3x.xml b/src/mapi/glapi/gen/GL3x.xml
> index db8bae5..82b977f 100644
> --- a/src/mapi/glapi/gen/GL3x.xml
> +++ b/src/mapi/glapi/gen/GL3x.xml
> @@ -624,7 +624,8 @@
>    <enum name="TEXTURE_SWIZZLE_A"                value="0x8E45"/>
>    <enum name="TEXTURE_SWIZZLE_RGBA"             value="0x8E46"/>
>
> -  <function name="VertexAttribDivisor" offset="assign" es2="3.0">
> +  <function name="VertexAttribDivisor" offset="assign" es2="3.0"
> +            alias="VertexAttribDivisorARB">
>      <param name="index" type="GLuint"/>
>      <param name="divisor" type="GLuint"/>
>    </function>
> --
> 1.7.12.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list