nv50/ir/nir: fix smem size for GL

Originally I tried to fix where the nir itself has a shared mem size of 0,
but the frontend (here clover) set it to some value. But st/mesa presets
it on the state object and we actually double the value in the end.

Just use max the value and use the biggest one.

Fixes the compute_shader.shared-max CTS test.

Fixes: dc667b1f ("nv50/ir/nir: fix smem size")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
44 jobs for !11047 with cts_fixes in 8 seconds (queued for 3 seconds)
detached
Status Job ID Name Coverage
  Sanity
passed sanity #10191790

00:00:08

 
  Container
manual arm_build #10191793
aarch64 manual
manual windows_build_vs2019 #10191794
windows shell 1809 mesa manual
manual x86_build-base #10191791
manual
manual x86_test-base #10191792
manual
 
  Container 2
created android_build #10191799
created i386_build #10191796
created kernel+rootfs_amd64 #10191802
created kernel+rootfs_arm64 #10191803
aarch64
created kernel+rootfs_armhf #10191804
aarch64
created ppc64el_build #10191797
created s390x_build #10191798
created x86_build #10191795
created x86_test-gl #10191800
created x86_test-vk #10191801
 
  Meson X86 64
created meson-clang #10191810
created meson-clover #10191811
created meson-clover-testing #10191807
created meson-gallium #10191808
created meson-release #10191809
created meson-testing #10191805
created meson-testing-asan #10191806
created meson-vulkan #10191812
 
  Build Misc
created arm_test #10191813
created meson-android #10191814
created meson-arm64 #10191816
aarch64
created meson-arm64-asan #10191817
aarch64
created meson-arm64-build-test #10191818
aarch64
created meson-armhf #10191815
aarch64
created meson-i386 #10191819
created meson-mingw32-x86_64 #10191821
created meson-ppc64el #10191820
 
  Intel
created i915-g33-deqp #10191822
anholt-g33 manual
created i915-g33-khr-deqp #10191823
anholt-g33 manual
created i915-g33-piglit #10191824
anholt-g33 manual
created i915-g33-traces #10191825
anholt-g33 manual
created iris-apl-gl #10191826
mesa-ci-aarch64-lava-collabora manual
created iris-glk-egl #10191831
mesa-ci-aarch64-lava-collabora manual
created iris-glk-gl #10191830
mesa-ci-aarch64-lava-collabora manual
created iris-glk-gles2 #10191827
mesa-ci-aarch64-lava-collabora manual
created iris-glk-gles3 #10191828
mesa-ci-aarch64-lava-collabora manual
created iris-glk-gles31 #10191829
mesa-ci-aarch64-lava-collabora manual
created iris-glk-traces #10191832
mesa-ci-aarch64-lava-collabora manual
 
  Freedreno
created a530_piglit_gl #10191833
google-freedreno-db820c manual