nouveau: add a way to override single pushbuffer memory limits
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 3 Mar 2013 21:34:38 +0000 (22:34 +0100)
committerMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 26 Mar 2013 20:08:03 +0000 (21:08 +0100)
commitf92d7969bf6ba636d193423cf2388956badde3ff
treefaed372387963e5796f89ab826aa775aa1abf947
parent284421a56921337aaabcec7ad2790034249c7b31
nouveau: add a way to override single pushbuffer memory limits

Currently single pushbuffer can take up to 80% of VRAM and 80% of GART.
As this value seems to be arbitrary (and user may need to set it differently)
this patch adds support for 2 environment variables:
NOUVEAU_LIBDRM_VRAM_LIMIT_PERCENT (default 80)
NOUVEAU_LIBDRM_GART_LIMIT_PERCENT (default 80)
which will let users override pushbuffer VRAM/GART limits.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
nouveau/nouveau.c
nouveau/private.h
nouveau/pushbuf.c