From 34f4bd81906d8385eb3e9af721d50e985cb9d7d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 13 Sep 2011 15:01:45 +0200 Subject: [PATCH] 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. --- src/gallium/drivers/r300/r300_flush.c | 2 +- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2