summaryrefslogtreecommitdiff
path: root/src/compiler/glsl/ast_to_hir.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <tarceri@itsqueeze.com>2018-10-11 11:25:08 +1100
committerTimothy Arceri <tarceri@itsqueeze.com>2018-10-11 14:45:43 +1100
commit3bc012a34e710f4e6029b889b33536b1c6eb0092 (patch)
tree53b00d659a93253258cc68a9d1f754909ede4326 /src/compiler/glsl/ast_to_hir.cpp
parentcc2fe57922f027aafbe3c50154cf6d980dbe1adf (diff)
glsl: remove redundant es_shader checks
The es check is already covered by the is_version() check. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/compiler/glsl/ast_to_hir.cpp')
-rw-r--r--src/compiler/glsl/ast_to_hir.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
index 1082d6c91cf..77fe0afef86 100644
--- a/src/compiler/glsl/ast_to_hir.cpp
+++ b/src/compiler/glsl/ast_to_hir.cpp
@@ -314,10 +314,6 @@ apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from,
if (!state->is_version(120, 0))
return false;
- /* ESSL does not allow implicit conversions */
- if (state->es_shader)
- return false;
-
/* From page 27 (page 33 of the PDF) of the GLSL 1.50 spec:
*
* "There are no implicit array or structure conversions. For