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@alum.mit.edu>
This commit is contained in:
parent
96f390ff35
commit
36ff09cdfe
|
@ -685,10 +685,7 @@ nouveau_buffer_create(struct pipe_screen *pscreen,
|
||||||
if (buffer->base.bind & screen->sysmem_bindings)
|
if (buffer->base.bind & screen->sysmem_bindings)
|
||||||
buffer->domain = NOUVEAU_BO_GART;
|
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);
|
ret = nouveau_buffer_allocate(screen, buffer, buffer->domain);
|
||||||
|
|
||||||
if (ret == false)
|
if (ret == false)
|
||||||
|
|
Loading…
Reference in New Issue