From 36ff09cdfe20e11bb5c350aa05a76972da869f2a Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sun, 22 May 2016 16:35:28 -0400 Subject: [PATCH] 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 --- src/gallium/drivers/nouveau/nouveau_buffer.c | 5 +---- 1 file changed, 1 insertion(+), 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) -- 2.30.2