From: Marek Olšák Date: Tue, 13 Sep 2011 13:01:45 +0000 (+0200) Subject: winsys/radeon: use the cache bufmgr for buffers with PIPE_BIND_CUSTOM X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34f4bd81906d8385eb3e9af721d50e985cb9d7d4;p=mesa.git 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. --- diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c index dc596c4122a..ad06ef416a1 100644 --- a/src/gallium/drivers/r300/r300_flush.c +++ b/src/gallium/drivers/r300/r300_flush.c @@ -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, diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index 1dc6eeb4cb0..652d114689b 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c @@ -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;