summaryrefslogtreecommitdiff
path: root/nouveau/private.h
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2013-03-03 22:34:38 +0100
committerMarcin Slusarz <marcin.slusarz@gmail.com>2013-03-26 21:08:03 +0100
commitf92d7969bf6ba636d193423cf2388956badde3ff (patch)
treefaed372387963e5796f89ab826aa775aa1abf947 /nouveau/private.h
parent284421a56921337aaabcec7ad2790034249c7b31 (diff)
downloadlibdrm-f92d7969bf6ba636d193423cf2388956badde3ff.tar.gz
libdrm-f92d7969bf6ba636d193423cf2388956badde3ff.tar.bz2
libdrm-f92d7969bf6ba636d193423cf2388956badde3ff.zip
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>
Diffstat (limited to 'nouveau/private.h')
-rw-r--r--nouveau/private.h1
1 files changed, 1 insertions, 0 deletions
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 *