glsl: mark some builtins with correct glsl(es) version check

GLSL Desktop spec 1.30.x:
   "New built-ins: trunc(), round(), roundEven(), isnan(), isinf(), modf()"

For ES, 3.00.x is the first ES spec that mentions the builtins.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6455>
This commit is contained in:
Tapani Pälli 2020-08-25 11:28:06 +03:00
parent 4868ce1451
commit 12567de2be

View file

@ -1796,9 +1796,9 @@ builtin_builder::create_builtins()
FI64(abs) FI64(abs)
FI64(sign) FI64(sign)
FD(floor) FD(floor)
FD(trunc) FD130(trunc)
FD(round) FD130(round)
FD(roundEven) FD130(roundEven)
FD(ceil) FD(ceil)
FD(fract) FD(fract)
@ -1830,7 +1830,7 @@ builtin_builder::create_builtins()
_mod(fp64, glsl_type::dvec4_type, glsl_type::dvec4_type), _mod(fp64, glsl_type::dvec4_type, glsl_type::dvec4_type),
NULL); NULL);
FD(modf) FD130(modf)
FIUD2_MIXED(min) FIUD2_MIXED(min)
FIUD2_MIXED(max) FIUD2_MIXED(max)