glsl: return cloned signature, not the builtin one
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 6 Feb 2016 22:08:29 +0000 (17:08 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 7 Feb 2016 22:23:58 +0000 (17:23 -0500)
commit88519c60873e6a5d67fc1fc09b125e4fe2fa3aee
tree7e721c898994b07d2d3244c288091c08d7174362
parentac57577e29643a59a33a7c2b01def2e297db3448
glsl: return cloned signature, not the builtin one

The builtin data can get released with a glReleaseShaderCompiler call.
We're careful everywhere to clone everything that comes out of builtins
except here, where we accidentally return the signature belonging to the
builtin version, rather than the locally-cloned one.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Tested-by: Rob Herring <robh@kernel.org>
Cc: mesa-stable@lists.freedesktop.org
src/compiler/glsl/ast_function.cpp