From f92d7969bf6ba636d193423cf2388956badde3ff Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Sun, 3 Mar 2013 22:34:38 +0100 Subject: 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 --- nouveau/private.h | 1 + 1 file changed, 1 insertion(+) (limited to 'nouveau/private.h') diff --git a/nouveau/private.h b/nouveau/private.h index 8a5cb261..60714b8e 100644 --- a/nouveau/private.h +++ b/nouveau/private.h @@ -99,6 +99,7 @@ struct nouveau_device_priv { uint32_t *client; int nr_client; bool have_bo_usage; + int gart_limit_percent, vram_limit_percent; }; static inline struct nouveau_device_priv * -- cgit v1.2.3