diff options
author | Christoph Bumiller <[email protected]> | 2012-05-17 14:43:47 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-05-17 15:24:58 +0200 |
commit | 1befacc7647f51344f5cfbfa86b62e53625a436f (patch) | |
tree | cc3ef152070aeed35223e0f145792bd469dfb77f /src/gallium/drivers/nvc0 | |
parent | 717f55d79d9709a31e0f85a87f076ac13446701d (diff) |
nouveau: place static buffers in VRAM if preferred by the driver
Diffstat (limited to 'src/gallium/drivers/nvc0')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_screen.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_screen.c b/src/gallium/drivers/nvc0/nvc0_screen.c index 0717ac8f725..49d61184471 100644 --- a/src/gallium/drivers/nvc0/nvc0_screen.c +++ b/src/gallium/drivers/nvc0/nvc0_screen.c @@ -418,8 +418,6 @@ nvc0_screen_create(struct nouveau_device *dev) return NULL; pscreen = &screen->base.base; - screen->base.sysmem_bindings = PIPE_BIND_CONSTANT_BUFFER; - ret = nouveau_screen_init(&screen->base, dev); if (ret) { nvc0_screen_destroy(pscreen); @@ -429,6 +427,11 @@ nvc0_screen_create(struct nouveau_device *dev) push = screen->base.pushbuf; push->user_priv = screen; + screen->base.vidmem_bindings |= PIPE_BIND_CONSTANT_BUFFER | + PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_INDEX_BUFFER; + screen->base.sysmem_bindings |= + PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_INDEX_BUFFER; + pscreen->destroy = nvc0_screen_destroy; pscreen->context_create = nvc0_create; pscreen->is_format_supported = nvc0_screen_is_format_supported; |