glsl: take EXT_gpu_shader4 in to account when adding round
authorTapani Pälli <tapani.palli@intel.com>
Tue, 15 Sep 2020 14:05:00 +0000 (17:05 +0300)
committerMarge Bot <eric+marge@anholt.net>
Fri, 18 Sep 2020 05:49:51 +0000 (05:49 +0000)
commit5805f5ab0161d597432adfa646557f2c8c25d278
tree8086e6287e91f5fbd36b96ff95ceab5eb89ac1d7
parentcde5b86a88c42c0139c0d685bd9844a7cee5dc4d
glsl: take EXT_gpu_shader4 in to account when adding round

GL_EXT_gpu_shader4 adds truncate() and round() builtins.

Fixes: 12567de2be7 ("glsl: mark some builtins with correct glsl(es) version check")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6731>
src/compiler/glsl/builtin_functions.cpp