diff options
author | Rob Clark <[email protected]> | 2016-06-24 14:28:51 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-07-02 09:00:19 -0400 |
commit | f78a6b1ce398a537d77c25b1a93f156109086975 (patch) | |
tree | 0d891e0156328ae8462f1e7cad56b373e7ab8607 /src/mesa/drivers/dri/common/xmlpool | |
parent | 202710d11057dfe4416770752cf5fd5b3f766999 (diff) |
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 <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/common/xmlpool')
-rw-r--r-- | src/mesa/drivers/dri/common/xmlpool/t_options.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/xmlpool/t_options.h b/src/mesa/drivers/dri/common/xmlpool/t_options.h index 4b298a46112..341c3763dee 100644 --- a/src/mesa/drivers/dri/common/xmlpool/t_options.h +++ b/src/mesa/drivers/dri/common/xmlpool/t_options.h @@ -337,7 +337,10 @@ DRI_CONF_OPT_BEGIN_B(always_have_depth_buffer, def) \ DRI_CONF_DESC(en,gettext("Create all visuals with a depth buffer")) \ DRI_CONF_OPT_END - +#define DRI_CONF_GLSL_ZERO_INIT(def) \ +DRI_CONF_OPT_BEGIN_B(glsl_zero_init, def) \ + DRI_CONF_DESC(en,gettext("Force uninitialized variables to default to zero")) \ +DRI_CONF_OPT_END /** * \brief Initialization configuration options |