glsl: raise warning when using uninitialized variables
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 23 Feb 2016 10:48:52 +0000 (11:48 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 29 Mar 2016 05:28:57 +0000 (07:28 +0200)
commitdcd41ca87a06199184eb8ada654aec985185189c
tree52f5d1fdc906c8220235103a6b6504cc42711251
parent8568d02498d12ebde6a6245056eebfbfe18aaf8f
glsl: raise warning when using uninitialized variables

v2:
 * Take into account out varyings too (Timothy Arceri)
 * Fix style (Timothy Arceri)
 * Use a new ast_expression variable, instead of an
   ast_expression::hir new parameter (Timothy Arceri)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94129

Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/compiler/glsl/ast_to_hir.cpp