Module: Mesa Branch: master Commit: db2a35193fc8e08b2bb54bf9f6150a9fc054b178 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=db2a35193fc8e08b2bb54bf9f6150a9fc054b178
Author: Timothy Arceri <[email protected]> Date: Sat May 28 11:56:17 2016 +1000 glsl: use has_double() helper Reviewed-by: Eduardo Lima Mitev <[email protected]> --- 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 c3af715..d6f9a75 100644 --- a/src/compiler/glsl/ast_to_hir.cpp +++ b/src/compiler/glsl/ast_to_hir.cpp @@ -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 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
