nine: replace ulimit with sysconf call
authornewbluemoon <blaumolch@mailbox.org>
Mon, 11 Jul 2022 19:21:35 +0000 (21:21 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 13 Jul 2022 08:34:18 +0000 (08:34 +0000)
commit6a4fc6f6ca78ef0d2a546f9c1156ac14e9ac9691
tree85c668307be7cfe0ecda376226abc48634796970
parent39f8c61f32594c058acf0148b62fb444ea81a043
nine: replace ulimit with sysconf call

__UL_GETOPENMAX seems to be glibc specific and not portable.
In glibc’s sysdeps/posix/ulimit.c it is assigned the return
value of sysconf(_SC_OPEN_MAX). So use the latter in the first place.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5176
CC: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17471>
src/gallium/frontends/nine/nine_memory_helper.c