glsl: use has_double() helper

Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
This commit is contained in:
Timothy Arceri 2016-05-28 11:56:17 +10:00
parent 8f4ac20b6f
commit db2a35193f
1 changed files with 1 additions and 2 deletions

View 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