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:
Marek Olšák 2011-09-13 15:01:45 +02:00
parent 81c688babe
commit 34f4bd8190
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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;