diff options
author | Ilia Mirkin <[email protected]> | 2016-05-22 16:35:28 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-05-22 22:57:18 -0400 |
commit | 36ff09cdfe20e11bb5c350aa05a76972da869f2a (patch) | |
tree | 8a60fff2b86934210bb0bafe1ad42a4c97a04d19 /src/gallium/drivers/nouveau | |
parent | 96f390ff35f456a7b2e310ecdcc59a109727ff6f (diff) |
nouveau: allow allocating non-object-backed buffers
On nv30, for example, there is no hardware index buffer support. So all
of those will be created entirely in user memory.
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r-- | src/gallium/drivers/nouveau/nouveau_buffer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_buffer.c b/src/gallium/drivers/nouveau/nouveau_buffer.c index ba43a614b90..2db538c70af 100644 --- a/src/gallium/drivers/nouveau/nouveau_buffer.c +++ b/src/gallium/drivers/nouveau/nouveau_buffer.c @@ -685,10 +685,7 @@ nouveau_buffer_create(struct pipe_screen *pscreen, if (buffer->base.bind & screen->sysmem_bindings) buffer->domain = NOUVEAU_BO_GART; } - /* There can be very special situations where we want non-gpu-mapped - * buffers, but never through this interface. - */ - assert(buffer->domain); + ret = nouveau_buffer_allocate(screen, buffer, buffer->domain); if (ret == false) |