[Mesa-dev] [PATCH] glsl: use has_double() helper

Eduardo Lima Mitev elima at igalia.com
Sun May 29 17:13:19 UTC 2016


Reviewed-by: Eduardo Lima Mitev <elima at igalia.com>

On 05/28/2016 03:56 AM, Timothy Arceri wrote:
> ---
>  src/compiler/glsl/ast_to_hir.cpp | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
> index a2eb32d..7c5c4e5 100644
> --- a/src/compiler/glsl/ast_to_hir.cpp
> +++ b/src/compiler/glsl/ast_to_hir.cpp
> @@ -2946,8 +2946,7 @@ validate_interpolation_qualifier(struct _mesa_glsl_parse_state *state,
>      *
>      * The 'double' type does not exist in GLSL ES so far.
>      */
> -   if ((state->ARB_gpu_shader_fp64_enable
> -        || state->is_version(400, 0))
> +   if (state->has_double()
>         && var_type->contains_double()
>         && interpolation != INTERP_QUALIFIER_FLAT
>         && state->stage == MESA_SHADER_FRAGMENT
> 



More information about the mesa-dev mailing list