radeonsi: don't wait for shader compilation to finish when destroying a context
authorMarek Olšák <marek.olsak@amd.com>
Wed, 12 Feb 2020 19:55:27 +0000 (14:55 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 14 Feb 2020 21:19:38 +0000 (16:19 -0500)
commit7e2b4bf256610cc016202893d7b4b4ef60b25b53
tree11b7ad48ed61e2b439ea9573cb7228fa3e90146f
parent7bee388fb50d1bf6fc63f7898ad189c7891a10a1
radeonsi: don't wait for shader compilation to finish when destroying a context

This was a hack for glsl_types deinitialization and it predates the proper
fix, which was the addition of glsl_type_singleton_decref.

This fixes a crash when the context is destroyed via the atexit handler.

Cc: 19.3 20.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3800>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3800>
src/gallium/drivers/radeonsi/si_pipe.c