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 #10191790
sanity

00:00:08

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