[Mesa-dev] [v3 PATCH 07/10] mesa: add helper function for testing if current fragment shader has atomics
Matt Turner
mattst88 at gmail.com
Thu May 21 16:15:32 PDT 2015
On Thu, May 21, 2015 at 2:30 PM, <kevin.rogovin at intel.com> wrote:
> From: Kevin Rogovin <kevin.rogovin at intel.com>
>
> Add helper function that checks if current fragment shader active
> of gl_context has atomic buffer access.
>
> v1 -> v3
> Added in v3 of patch series.
>
> Signed-off-by: Kevin Rogovin <kevin.rogovin at intel.com>
> ---
> src/mesa/main/mtypes.h | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
> index 7e1f0e0..b88b10a 100644
> --- a/src/mesa/main/mtypes.h
> +++ b/src/mesa/main/mtypes.h
> @@ -4464,7 +4464,12 @@ enum _debug
> DEBUG_INCOMPLETE_FBO = (1 << 3)
> };
>
> -
> +static inline bool
> +_mesa_active_fragment_shader_has_atomic_ops(const struct gl_context *ctx)
> +{
> + return ctx->Shader._CurrentFragmentProgram!=NULL &&
Spaces around !=...
More information about the mesa-dev
mailing list