[Mesa-dev] [PATCH 1/4] gles/es3.1: Enable dispatch of glMemoryBarrierByRegion

Ilia Mirkin imirkin at alum.mit.edu
Fri Jul 31 09:57:24 PDT 2015


Won't this cause a compilation failure in mesa? I thought it'd start
looking for the _mesa_MemoryBarrierByRegion function. Normally this is
added as a stub in the first commit, and then the real impl comes
later.

On Fri, Jul 31, 2015 at 8:15 AM, Marta Lofstedt
<marta.lofstedt at linux.intel.com> wrote:
> From: Marta Lofstedt <marta.lofstedt at intel.com>
>
> Signed-off-by: Marta Lofstedt <marta.lofstedt at intel.com>
> ---
>  src/mapi/glapi/gen/gl_API.xml           | 4 ++++
>  src/mesa/main/tests/dispatch_sanity.cpp | 3 +--
>  2 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
> index 658efa4..3db4349 100644
> --- a/src/mapi/glapi/gen/gl_API.xml
> +++ b/src/mapi/glapi/gen/gl_API.xml
> @@ -2966,6 +2966,10 @@
>          <param name="height" type="GLsizei"/>
>          <glx rop="191"/>
>      </function>
> +
> +    <function name="MemoryBarrierByRegion" es2="3.1">
> +        <param name="barriers" type="GLbitfield"/>
> +    </function>
>  </category>
>
>  <category name="1.1">
> diff --git a/src/mesa/main/tests/dispatch_sanity.cpp b/src/mesa/main/tests/dispatch_sanity.cpp
> index af89d2c..14c9eda 100644
> --- a/src/mesa/main/tests/dispatch_sanity.cpp
> +++ b/src/mesa/main/tests/dispatch_sanity.cpp
> @@ -2461,8 +2461,7 @@ const struct function gles31_functions_possible[] = {
>     { "glGetBooleani_v", 31, -1 },
>     { "glMemoryBarrier", 31, -1 },
>
> -   // FINISHME: This function has not been implemented yet.
> -   // { "glMemoryBarrierByRegion", 31, -1 },
> +   { "glMemoryBarrierByRegion", 31, -1 },
>
>     { "glTexStorage2DMultisample", 31, -1 },
>     { "glGetMultisamplefv", 31, -1 },
> --
> 1.9.1
>
> _______________________________________________
> 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