Squashed commit of the following:
[mesa.git] / src / gallium / auxiliary / pipebuffer / pb_bufmgr_slab.c
index 24e2820f881a44b0a27bfb2a8dca9ab033d901b4..7a3305aaf37234ae5d8891417d0ce20c2cecfa99 100644 (file)
@@ -315,8 +315,8 @@ pb_slab_create(struct pb_slab_manager *mgr)
    /* Note down the slab virtual address. All mappings are accessed directly 
     * through this address so it is required that the buffer is pinned. */
    slab->virtual = pb_map(slab->bo, 
-                          PIPE_BUFFER_USAGE_CPU_READ |
-                          PIPE_BUFFER_USAGE_CPU_WRITE);
+                          PB_USAGE_CPU_READ |
+                          PB_USAGE_CPU_WRITE);
    if(!slab->virtual) {
       ret = PIPE_ERROR_OUT_OF_MEMORY;
       goto out_err1;