glsl: Do not allow scalar types in vector relational functions
authorBoyan Ding <boyan.j.ding@gmail.com>
Mon, 31 Oct 2016 06:45:48 +0000 (14:45 +0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 10 Jan 2017 01:58:33 +0000 (17:58 -0800)
commit41b1d9a558d620df339738aa4aa569fe14298b83
tree4071617950ef6167db86a691b0c0ace031d6eb23
parent5b4fa21d5309662ab7e8e15e7f20f90bb8ebc944
glsl: Do not allow scalar types in vector relational functions

According to OpenGL Shading Language 4.50 spec, Section 8.7 "Vector
Relational Functions", functions of this type do not operate on scalar
types, so remove scalar types from signature definitions to make the
behavior consistent with glslangValidator and other drivers.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com>
src/compiler/glsl/builtin_functions.cpp