util: Initialize pipe_shader_state for passthrough and transform shaders
authorNeha Bhende <bhenden@vmware.com>
Wed, 27 May 2020 15:15:29 +0000 (20:45 +0530)
committerMarge Bot <eric+marge@anholt.net>
Thu, 28 May 2020 23:27:53 +0000 (23:27 +0000)
commit838666a41dcbbf566bff57e7a7b841e50bf2bdce
tree54f733a305a748fd037d82ea956870c2ac9cff47
parent034329128b703f8c2e8ad1980ddb131df372ce48
util: Initialize pipe_shader_state for passthrough and transform shaders

mesa/st is initializing pipe_shader_state for user define shaders.
This patch intialized pipe_shader_state for all passthough
and transform shaders.

This fixes crashes for several opengl apps. Issue is found in vmware
internal testing

Fixes: f01c0565bb9 ("draw: free the NIR IR.")
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5240>
src/gallium/auxiliary/hud/hud_context.c
src/gallium/auxiliary/tgsi/tgsi_ureg.c
src/gallium/auxiliary/util/u_simple_shaders.c
src/gallium/drivers/svga/svga_state_tgsi_transform.c