radeonsi: take reference glsl types for compile threads

An application quitting before the destroying its GL context and
binding a NULL context might still have a radeonsi compiler thread
running and potentially still accessing the types.

Therefore take a reference for the duration of the threads' lifetime.

v2: Only ref the glsl types, the builtins should be used by the time
    shader data gets to a gallium driver.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
22 jobs for !1524 with review/glsl-types-builtin in 41 minutes and 1 second (queued for 37 seconds)
detached
Status Job ID Name Coverage
  Containers Build
passed #520601
debian

00:03:48

 
  Build+Test
passed #520610
meson-arm64

00:01:37

passed #520609
meson-armhf

00:02:35

passed #520603
meson-clang

00:11:32

passed #520607
meson-clover

00:13:32

passed #520611
meson-i386

00:04:59

passed #520606
meson-main

00:12:10

passed #520602
meson-swr-glvnd

00:06:59

passed #520608
meson-vulkan

00:02:10

passed #520613
scons-llvm

00:04:51

passed #520612
scons-nollvm

00:03:11

passed #520604
scons-swr

00:09:00

passed #520605
scons-win64

00:08:08

 
  Test
passed #520614
test-llvmpipe-gles2 1/4

00:04:10

passed #520615
test-llvmpipe-gles2 2/4

00:04:01

passed #520616
test-llvmpipe-gles2 3/4

00:04:06

passed #520617
test-llvmpipe-gles2 4/4

00:03:54

passed #520618
test-softpipe-gles2 1/4

00:01:32

passed #520619
test-softpipe-gles2 2/4

00:01:48

passed #520620
test-softpipe-gles2 3/4

00:01:29

passed #520621
test-softpipe-gles2 4/4

00:01:50

passed #520622
test-softpipe-gles3-limited

00:04:29