glsl: only expose int64 atomics when extension is enabled
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 16 Jan 2021 06:10:24 +0000 (01:10 -0500)
committerMarge Bot <eric+marge@anholt.net>
Sat, 16 Jan 2021 18:21:03 +0000 (18:21 +0000)
commita0f4affcf64cfd13a27f1e3cc24f98ef220b691b
treedf753af4bc72f99377fac78121b78dbe07bcf695
parent6638b58ccf17ce3a00a8ecbf5f39b5bedef238ed
glsl: only expose int64 atomics when extension is enabled

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")
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8533>
src/compiler/glsl/builtin_functions.cpp