From: Ilia Mirkin Date: Sun, 22 May 2016 20:35:28 +0000 (-0400) Subject: nouveau: allow allocating non-object-backed buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36ff09cdfe20e11bb5c350aa05a76972da869f2a;p=mesa.git 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 --- 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)