iris: ref/unref the GLSL type singleton in screen_create/destroy
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 15 Aug 2020 05:26:05 +0000 (00:26 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 21 Aug 2020 22:49:53 +0000 (22:49 +0000)
commitd0a8ad77e99385175b8266f4dc4d66dd2baa85e7
treeb84e6082ed594c6c0b4b2f41ad966fda4837d949
parentb9678aa17d3dc0abca6db4ed9d7102dcb9a7d899
iris: ref/unref the GLSL type singleton in screen_create/destroy

Otherwise, we can run into trouble if the driver is dynamically loaded
via pipe-loader.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6405>
src/gallium/drivers/iris/iris_screen.c