Mesa (master): nouveau: allow allocating non-object-backed buffers

Ilia Mirkin imirkin at kemper.freedesktop.org
Mon May 23 02:58:49 UTC 2016


Module: Mesa
Branch: master
Commit: 36ff09cdfe20e11bb5c350aa05a76972da869f2a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=36ff09cdfe20e11bb5c350aa05a76972da869f2a

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sun May 22 16:35:28 2016 -0400

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 <imirkin at alum.mit.edu>

---

 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 ba43a61..2db538c 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)




More information about the mesa-commit mailing list