Squashed commit of the following:
[mesa.git] / src / gallium / auxiliary / pipebuffer / pb_bufmgr_mm.c
index 6400fc5b0a3b13300ed8aace4585ae0dbbdf1de5..faf7c35267454c552db025261524b4e87998b144 100644 (file)
@@ -35,7 +35,7 @@
 
 #include "pipe/p_defines.h"
 #include "util/u_debug.h"
-#include "pipe/p_thread.h"
+#include "os/os_thread.h"
 #include "util/u_memory.h"
 #include "util/u_double_list.h"
 #include "util/u_mm.h"
@@ -268,8 +268,8 @@ mm_bufmgr_create_from_buffer(struct pb_buffer *buffer,
    mm->buffer = buffer; 
 
    mm->map = pb_map(mm->buffer, 
-                   PIPE_BUFFER_USAGE_CPU_READ |
-                   PIPE_BUFFER_USAGE_CPU_WRITE);
+                   PB_USAGE_CPU_READ |
+                   PB_USAGE_CPU_WRITE);
    if(!mm->map)
       goto failure;