From: Marek Olšák Date: Fri, 22 Jul 2011 20:14:39 +0000 (+0200) Subject: winsys/radeon: manage constant buffers by the cache bufmgr too X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=533e2289235c61eff9a14bb24da7c8a1ff0b0afa;p=mesa.git winsys/radeon: manage constant buffers by the cache bufmgr too --- diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index 7f02a5abda5..796262ccfdb 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c @@ -498,7 +498,8 @@ radeon_winsys_bo_create(struct radeon_winsys *rws, desc.usage = get_pb_usage_from_create_flags(domain); /* Assign a buffer manager. */ - if (bind & (PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_INDEX_BUFFER)) + if (bind & (PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_INDEX_BUFFER | + PIPE_BIND_CONSTANT_BUFFER)) provider = ws->cman; else provider = ws->kman;