summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/p_debug_mem.c
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-05-01 00:59:12 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-05-01 02:25:23 +0900
commitcafb545721e6c9479c07d3a7a891236e006d3376 (patch)
treef1a6c508912ecb3019d38cd7fc7f922cefddceb5 /src/gallium/auxiliary/util/p_debug_mem.c
parentc9acd439b1af4b037ded324139664cf9832930f8 (diff)
d3d: Windows miniport driver portability fixes.
Diffstat (limited to 'src/gallium/auxiliary/util/p_debug_mem.c')
-rw-r--r--src/gallium/auxiliary/util/p_debug_mem.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/p_debug_mem.c b/src/gallium/auxiliary/util/p_debug_mem.c
index 9321cf71bb..3b5e4fbaee 100644
--- a/src/gallium/auxiliary/util/p_debug_mem.c
+++ b/src/gallium/auxiliary/util/p_debug_mem.c
@@ -34,9 +34,11 @@
#include "pipe/p_config.h"
-#ifdef PIPE_SUBSYSTEM_WINDOWS_DISPLAY
+#if defined(PIPE_SUBSYSTEM_WINDOWS_DISPLAY)
#include <windows.h>
#include <winddi.h>
+#elif defined(PIPE_SUBSYSTEM_WINDOWS_MINIPORT)
+#include <wdm.h>
#else
#include <stdio.h>
#include <stdlib.h>
@@ -52,6 +54,9 @@
#if defined(PIPE_SUBSYSTEM_WINDOWS_DISPLAY) && !defined(WINCE)
#define real_malloc(_size) EngAllocMem(0, _size, 'D3AG')
#define real_free(_ptr) EngFreeMem(_ptr)
+#elif defined(PIPE_SUBSYSTEM_WINDOWS_MINIPORT)
+#define real_malloc(_size) ExAllocatePool(0, _size)
+#define real_free(_ptr) ExFreePool(_ptr)
#else
#define real_malloc(_size) malloc(_size)
#define real_free(_ptr) free(_ptr)