[Mesa-dev] [PATCH] glsl: Add compute shader builtin variables for OpenGLES 3.1

Lofstedt, Marta marta.lofstedt at intel.com
Thu Oct 29 02:55:34 PDT 2015


Thanks for your recent patches, they make big difference for the gles 3.1 CTS results!

Reviewed-by: Marta Lofstedt <marta.lofstedt at intel.com>

> -----Original Message-----
> From: mesa-dev [mailto:mesa-dev-bounces at lists.freedesktop.org] On
> Behalf Of Jordan Justen
> Sent: Thursday, October 29, 2015 8:46 AM
> To: mesa-dev at lists.freedesktop.org
> Subject: [Mesa-dev] [PATCH] glsl: Add compute shader builtin variables for
> OpenGLES 3.1
> 
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> ---
>  src/glsl/builtin_variables.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp index
> a6ad105..00113d5 100644
> --- a/src/glsl/builtin_variables.cpp
> +++ b/src/glsl/builtin_variables.cpp
> @@ -710,7 +710,7 @@ builtin_variable_generator::generate_constants()
>        }
>     }
> 
> -   if (state->is_version(430, 0) || state->ARB_compute_shader_enable) {
> +   if (state->is_version(430, 310) || state->ARB_compute_shader_enable)
> + {
>        add_const("gl_MaxComputeAtomicCounterBuffers",
> MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS);
>        add_const("gl_MaxComputeAtomicCounters",
> MAX_COMPUTE_ATOMIC_COUNTERS);
>        add_const("gl_MaxComputeImageUniforms",
> MAX_COMPUTE_IMAGE_UNIFORMS);
> --
> 2.5.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