summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-05-28 11:56:17 +1000
committerTimothy Arceri <[email protected]>2016-05-30 11:01:40 +1000
commitdb2a35193fc8e08b2bb54bf9f6150a9fc054b178 (patch)
tree7033361a08fc90836e1e09694fea0cb31413d661 /src
parent8f4ac20b6fc29b7739b2eb909491316bc51ca1c3 (diff)
glsl: use has_double() helper
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/glsl/ast_to_hir.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
index c3af715b934..d6f9a750de7 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