glsl: add driconf to zero-init unintialized vars
authorRob Clark <robclark@freedesktop.org>
Fri, 24 Jun 2016 18:28:51 +0000 (14:28 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 2 Jul 2016 13:00:19 +0000 (09:00 -0400)
commitf78a6b1ce398a537d77c25b1a93f156109086975
tree0d891e0156328ae8462f1e7cad56b373e7ab8607
parent202710d11057dfe4416770752cf5fd5b3f766999
glsl: add driconf to zero-init unintialized vars

Some games are sloppy.. perhaps because it is defined behavior for DX or
perhaps because nv blob driver defaults things to zero.

So add driconf param to force uninitialized variables to default to zero.

This issue was observed with rust, from steam store.  But has surfaced
elsewhere in the past.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/ast_to_hir.cpp
src/compiler/glsl/glsl_parser_extras.cpp
src/compiler/glsl/glsl_parser_extras.h
src/gallium/include/state_tracker/st_api.h
src/gallium/state_trackers/dri/dri_screen.c
src/mesa/drivers/dri/common/drirc
src/mesa/drivers/dri/common/xmlpool/t_options.h
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/main/mtypes.h
src/mesa/state_tracker/st_extensions.c