glsl: only expose int64 atomics when extension is enabled

Graphics / Mesa 3D Graphics Library / Mesa - Ilia Mirkin [alum.mit.edu] - 16 January 2021 18:21 UTC

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(-)

Upstream: cgit.freedesktop.org


  • Share