glsl: use has_double() helper
authorTimothy Arceri <timothy.arceri@collabora.com>
Sat, 28 May 2016 01:56:17 +0000 (11:56 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Mon, 30 May 2016 01:01:40 +0000 (11:01 +1000)
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/compiler/glsl/ast_to_hir.cpp

index c3af715b934e571d8365b0c03ef78942100e6c1e..d6f9a750de79bc6f141a223b0b3bd40e67da192d 100644 (file)
@@ -2967,8 +2967,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