OSDN Git Service

nouveau: allow allocating non-object-backed buffers
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 22 May 2016 20:35:28 +0000 (16:35 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 23 May 2016 02:57:18 +0000 (22:57 -0400)
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 <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nouveau_buffer.c

index ba43a61..2db538c 100644 (file)
@@ -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)