This limits the exposure of these functions to when the extension is available. Prevents crashes otherwise, as the rest of the infrastructure doesn't necessarily expect these functions when the extension is not available.
Fixes: 40c1f9883e5 ("mesa,glsl: add support for GL_NV_shader_atomic_int64")
a0f4affcf64 glsl: only expose int64 atomics when extension is enabled
src/compiler/glsl/builtin_functions.cpp | 59 ++++++++++++++++++---------------
1 file changed, 33 insertions(+), 26 deletions(-)