summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-07-22 22:14:39 +0200
committerMarek Olšák <[email protected]>2011-07-25 23:10:40 +0200
commit533e2289235c61eff9a14bb24da7c8a1ff0b0afa (patch)
tree00b0329be3429908c59d6c0b8d17ed9962b10294 /src
parent7db148d3a5a350f80df8dc588e0079fda7aa378a (diff)
winsys/radeon: manage constant buffers by the cache bufmgr too
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_bo.c3
1 files changed, 2 insertions, 1 deletions
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;