projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96f390f
)
nouveau: allow allocating non-object-backed buffers
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Sun, 22 May 2016 20:35:28 +0000
(16:35 -0400)
committer
Ilia 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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nouveau/nouveau_buffer.c
b/src/gallium/drivers/nouveau/nouveau_buffer.c
index ba43a614b90fbd73338757913a6685b58866ab26..2db538c70af935ead1c483a28d1390594f9f44bd 100644
(file)
--- 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)