This fixes crashes for opengl apps. Issue is found in vmware
internal testing
Fixes:
f01c0565bb9 ("draw: free the NIR IR.")
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11274>
}
if (!use_existing) {
- struct pipe_shader_state state;
+ struct pipe_shader_state state = {0};
struct tgsi_token *new_tokens = NULL;
new_tokens = tgsi_write_vpos(shader->tokens,
struct tgsi_token *new_tokens = NULL;
if (!use_existing) {
- struct pipe_shader_state state;
+ struct pipe_shader_state state = {0};
new_tokens = tgsi_remove_dynamic_indexing(shader->tokens,
info->const_buffers_declared,
info->samplers_declared,