winsys/radeon: manage constant buffers by the cache bufmgr too
authorMarek Olšák <maraeo@gmail.com>
Fri, 22 Jul 2011 20:14:39 +0000 (22:14 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 25 Jul 2011 21:10:40 +0000 (23:10 +0200)
src/gallium/winsys/radeon/drm/radeon_drm_bo.c

index 7f02a5abda5637944ed7e18b5d28504e95ab5194..796262ccfdbb8841d97455c9bde6fe5632c7dca5 100644 (file)
@@ -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;