1 | /** @file
|
---|
2 | *
|
---|
3 | * VBoxVideo Display D3D User mode dll
|
---|
4 | *
|
---|
5 | * Copyright (C) 2010 Oracle Corporation
|
---|
6 | *
|
---|
7 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
8 | * available from http://www.virtualbox.org. This file is free software;
|
---|
9 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
10 | * General Public License (GPL) as published by the Free Software
|
---|
11 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
12 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
13 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
14 | */
|
---|
15 | #ifndef ___VBoxDispD3DCmn_h___
|
---|
16 | #define ___VBoxDispD3DCmn_h___
|
---|
17 |
|
---|
18 | #include <windows.h>
|
---|
19 | #include <d3d9types.h>
|
---|
20 | //#include <d3dtypes.h>
|
---|
21 | #include <D3dumddi.h>
|
---|
22 | #include <d3dhal.h>
|
---|
23 |
|
---|
24 | #include <iprt/initterm.h>
|
---|
25 | #include <iprt/log.h>
|
---|
26 | #include <iprt/mem.h>
|
---|
27 |
|
---|
28 | #include <VBox/Log.h>
|
---|
29 |
|
---|
30 | #include <VBox/VBoxGuestLib.h>
|
---|
31 |
|
---|
32 | #include "VBoxDispD3DIf.h"
|
---|
33 | #include "../../Miniport/wddm/VBoxVideoIf.h"
|
---|
34 | #include "VBoxDispCm.h"
|
---|
35 | #include "VBoxDispD3D.h"
|
---|
36 |
|
---|
37 | #ifdef DEBUG
|
---|
38 | # define VBOXWDDMDISP_DEBUG
|
---|
39 | #endif
|
---|
40 |
|
---|
41 | #if 0
|
---|
42 | # ifdef Assert
|
---|
43 | # undef Assert
|
---|
44 | # define Assert(_a) do{}while(0)
|
---|
45 | # endif
|
---|
46 | # ifdef AssertBreakpoint
|
---|
47 | # undef AssertBreakpoint
|
---|
48 | # define AssertBreakpoint() do{}while(0)
|
---|
49 | # endif
|
---|
50 | # ifdef AssertFailed
|
---|
51 | # undef AssertFailed
|
---|
52 | # define AssertFailed() do{}while(0)
|
---|
53 | # endif
|
---|
54 | #endif
|
---|
55 |
|
---|
56 | #ifdef VBOXWDDMDISP_DEBUG
|
---|
57 | VOID vboxVDbgDoPrint(LPCSTR szString, ...);
|
---|
58 |
|
---|
59 | #define vboxVDbgBreak() AssertBreakpoint()
|
---|
60 | #define vboxVDbgPrint(_m) \
|
---|
61 | do { \
|
---|
62 | vboxVDbgDoPrint _m ; \
|
---|
63 | } while (0)
|
---|
64 | #define vboxVDbgPrintR vboxVDbgPrint
|
---|
65 | #define vboxVDbgPrintF vboxVDbgPrint
|
---|
66 | #else
|
---|
67 | #define vboxVDbgBreak() do {} while (0)
|
---|
68 | #define vboxVDbgPrint(_m) do {} while (0)
|
---|
69 | #define vboxVDbgPrintR vboxVDbgPrint
|
---|
70 | #define vboxVDbgPrintF vboxVDbgPrint
|
---|
71 | #endif
|
---|
72 |
|
---|
73 | #endif /* #ifndef ___VBoxDispD3DCmn_h___ */
|
---|