winsys/radeon: use the cache bufmgr for buffers with PIPE_BIND_CUSTOM
so that we don't abuse PIPE_BIND_VERTEX_BUFFER all the time.
This commit is contained in:
parent
81c688babe
commit
34f4bd8190
|
@ -75,7 +75,7 @@ void r300_flush(struct pipe_context *pipe,
|
|||
if (rfence) {
|
||||
/* Create a fence, which is a dummy BO. */
|
||||
*rfence = r300->rws->buffer_create(r300->rws, 1, 1,
|
||||
PIPE_BIND_VERTEX_BUFFER,
|
||||
PIPE_BIND_CUSTOM,
|
||||
RADEON_DOMAIN_GTT);
|
||||
/* Add the fence as a dummy relocation. */
|
||||
r300->rws->cs_add_reloc(r300->cs,
|
||||
|
|
|
@ -536,7 +536,7 @@ radeon_winsys_bo_create(struct radeon_winsys *rws,
|
|||
|
||||
/* Assign a buffer manager. */
|
||||
if (bind & (PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_INDEX_BUFFER |
|
||||
PIPE_BIND_CONSTANT_BUFFER))
|
||||
PIPE_BIND_CONSTANT_BUFFER | PIPE_BIND_CUSTOM))
|
||||
provider = ws->cman;
|
||||
else
|
||||
provider = ws->kman;
|
||||
|
|
Loading…
Reference in New Issue