lima: implement PLB PP stream cache
[mesa.git] / src / gallium / auxiliary / util / u_debug_memory.c
index 0c822369a003267091e367aeaea4e934eb824276..e468fd0b2525a9bb0239d630647e365c8ac698da 100644 (file)
 
 #define DEBUG_MEMORY_IMPLEMENTATION
 
-#include "os/os_memory.h"
-#include "os/os_memory_debug.h"
 #include "os/os_thread.h"
 
 #include "util/u_debug.h"
 #include "util/u_debug_gallium.h"
 #include "util/u_debug_stack.h"
 #include "util/list.h"
+#include "util/os_memory.h"
+#include "util/os_memory_debug.h"
 
 
 #define DEBUG_MEMORY_MAGIC 0x6e34090aU
@@ -155,7 +155,7 @@ debug_malloc(const char *file, unsigned line, const char *function,
    ftr->magic = DEBUG_MEMORY_MAGIC;
 
    mtx_lock(&list_mutex);
-   LIST_ADDTAIL(&hdr->head, &list);
+   list_addtail(&hdr->head, &list);
    mtx_unlock(&list_mutex);
 
    return data_from_header(hdr);
@@ -200,7 +200,7 @@ debug_free(const char *file, unsigned line, const char *function,
    memset(ptr, DEBUG_FREED_BYTE, hdr->size);
 #else
    mtx_lock(&list_mutex);
-   LIST_DEL(&hdr->head);
+   list_del(&hdr->head);
    mtx_unlock(&list_mutex);
    hdr->magic = 0;
    ftr->magic = 0;
@@ -275,7 +275,7 @@ debug_realloc(const char *file, unsigned line, const char *function,
    new_ftr->magic = DEBUG_MEMORY_MAGIC;
 
    mtx_lock(&list_mutex);
-   LIST_REPLACE(&old_hdr->head, &new_hdr->head);
+   list_replace(&old_hdr->head, &new_hdr->head);
    mtx_unlock(&list_mutex);
 
    /* copy data */