summaryrefslogtreecommitdiff
path: root/src/nv30_exa.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2009-05-26 15:48:25 +1000
committerBen Skeggs <bskeggs@redhat.com>2009-05-27 10:33:40 +1000
commit81bbdd4ee2e942d91d056a10ef993a8f41651c64 (patch)
tree6c06a4904075177b4c16f0dc888de23d9ea82574 /src/nv30_exa.c
parent6c09ad5296820a845571d07cbe42d88bb19560df (diff)
downloadxorg-driver-xf86-video-nouveau-81bbdd4ee2e942d91d056a10ef993a8f41651c64.tar.gz
explicitly mark buffers mappable
Diffstat (limited to 'src/nv30_exa.c')
-rw-r--r--src/nv30_exa.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nv30_exa.c b/src/nv30_exa.c
index d3f83d3..9146d5c 100644
--- a/src/nv30_exa.c
+++ b/src/nv30_exa.c
@@ -665,8 +665,9 @@ NVAccelInitNV30TCL(ScrnInfoPtr pScrn)
rankine = pNv->Nv3D;
if (!pNv->shader_mem) {
- if (nouveau_bo_new(pNv->dev, NOUVEAU_BO_VRAM | NOUVEAU_BO_PIN,
- 0, 0x1000, &pNv->shader_mem)) {
+ if (nouveau_bo_new(pNv->dev, NOUVEAU_BO_VRAM | NOUVEAU_BO_PIN |
+ NOUVEAU_BO_MAP, 0, 0x1000,
+ &pNv->shader_mem)) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"Couldn't alloc fragprog buffer!\n");
nouveau_grobj_free(&pNv->Nv3D);