diff options
author | Francisco Jerez <[email protected]> | 2010-10-31 01:37:47 +0200 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2010-10-31 02:01:24 +0100 |
commit | f67fa5229331f6d4920175dd0d6e1e6a2c69c060 (patch) | |
tree | 994bf53e24c460e23ae2df780422e08813cd773a /src/mesa/drivers/dri/nouveau/nouveau_array.c | |
parent | e89af209261e51988b99d954d09f2cbc59e55358 (diff) |
dri/nouveau: Keep small DYNAMIC_DRAW vertex buffers in system ram.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_array.c')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_array.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_array.c b/src/mesa/drivers/dri/nouveau/nouveau_array.c index 1fee3603092..17e6d163a02 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_array.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_array.c @@ -90,7 +90,7 @@ nouveau_init_array(struct nouveau_array *a, int attr, int stride, a->buf = NULL; if (obj) { - if (_mesa_is_bufferobj(obj)) { + if (nouveau_bufferobj_hw(obj)) { struct nouveau_bufferobj *nbo = to_nouveau_bufferobj(obj); @@ -107,7 +107,8 @@ nouveau_init_array(struct nouveau_array *a, int attr, int stride, a->offset = 0; if (map) - a->buf = ptr; + a->buf = ADD_POINTERS( + nouveau_bufferobj_sys(obj), ptr); } } |