summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/nvc0_screen.c
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2010-12-21 06:32:13 +1000
committerBen Skeggs <[email protected]>2010-12-21 06:32:13 +1000
commite4e1a85bf8126d67fa0b9bf64b8d094ec1fbe2f8 (patch)
treecc4936456d1eb0b79c4e93b65e675909009ce881 /src/gallium/drivers/nvc0/nvc0_screen.c
parente52ebd6e8587e2e37ed65ad9fc9035c2bd00b563 (diff)
nvc0: fence.bo is mappable, mark it as such
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_screen.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_screen.c b/src/gallium/drivers/nvc0/nvc0_screen.c
index 24937217c09..7936ef37d17 100644
--- a/src/gallium/drivers/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nvc0/nvc0_screen.c
@@ -375,7 +375,8 @@ nvc0_screen_create(struct pipe_winsys *ws, struct nouveau_device *dev)
screen->base.vertex_buffer_flags = NOUVEAU_BO_GART;
screen->base.index_buffer_flags = 0;
- ret = nouveau_bo_new(dev, NOUVEAU_BO_GART, 0, 4096, &screen->fence.bo);
+ ret = nouveau_bo_new(dev, NOUVEAU_BO_GART | NOUVEAU_BO_MAP, 0, 4096,
+ &screen->fence.bo);
if (ret)
goto fail;
nouveau_bo_map(screen->fence.bo, NOUVEAU_BO_RDWR);