st/nine: Increase available GPU memory
authorAxel Davy <davyaxel0@gmail.com>
Fri, 8 May 2020 20:26:07 +0000 (22:26 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 May 2020 15:43:57 +0000 (15:43 +0000)
commitd771e0cc60a0aa853c5e1e0df304f970a47ab774
treecf3ad7e83eca56eaebea1a3ab735035e8d17cd10
parent4cf13691beb4237a8a449dd317561066df492842
st/nine: Increase available GPU memory

This patch caps to 4GB the limit of GPU memory accessible
only for 32bits build.
This would deserve some tests on windows, so we might change that
behaviour in the future. For example, it's possible that
GetAvailableTextureMem is capped to 4GB on 64bits build.

We cap to a bit less than 4GB, which might help
https://github.com/iXit/Mesa-3D/issues/323

In addition, increase from 80% to 95% the allocation limit above
which we fail allocating.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5015>
src/gallium/frontends/nine/device9.c