Changeset 32496 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.h
- Timestamp:
- Sep 14, 2010 10:14:46 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.h
r32241 r32496 64 64 typedef struct VBOXWDDM_ALLOCATION 65 65 { 66 LIST_ENTRY SwapchainEntry; 67 struct VBOXWDDM_SWAPCHAIN *pSwapchain; 66 68 VBOXWDDM_ALLOC_TYPE enmType; 67 69 // VBOXWDDM_ALLOCUSAGE_TYPE enmCurrentUsage; … … 124 126 typedef enum 125 127 { 128 VBOXWDDM_OBJSTATE_TYPE_UNKNOWN = 0, 129 VBOXWDDM_OBJSTATE_TYPE_INITIALIZED, 130 VBOXWDDM_OBJSTATE_TYPE_TERMINATED 131 } VBOXWDDM_OBJSTATE_TYPE; 132 typedef struct VBOXWDDM_SWAPCHAIN 133 { 134 LIST_ENTRY DevExtListEntry; 135 LIST_ENTRY AllocList; 136 struct VBOXWDDM_CONTEXT *pContext; 137 RECT ViewRect; 138 VBOXWDDM_OBJSTATE_TYPE enmState; 139 volatile uint32_t cRefs; 140 VBOXDISP_UMHANDLE hSwapchainUm; 141 VBOXDISP_KMHANDLE hSwapchainKm; 142 PVBOXVIDEOCM_CMD_RECTS_INTERNAL pLastReportedRects; 143 }VBOXWDDM_SWAPCHAIN, *PVBOXWDDM_SWAPCHAIN; 144 145 typedef enum 146 { 126 147 VBOXWDDM_CONTEXT_TYPE_UNDEFINED = 0, 127 148 VBOXWDDM_CONTEXT_TYPE_SYSTEM, … … 132 153 typedef struct VBOXWDDM_CONTEXT 133 154 { 134 LIST_ENTRY ListEntry;155 // LIST_ENTRY ListEntry; 135 156 struct VBOXWDDM_DEVICE * pDevice; 136 157 HANDLE hContext; … … 139 160 UINT EngineAffinity; 140 161 UINT uLastCompletedCmdFenceId; 141 RECT ViewRect;142 PVBOXVIDEOCM_CMD_RECTS_INTERNAL pLastReportedRects;162 FAST_MUTEX SwapchainMutex; 163 VBOXWDDM_HTABLE Swapchains; 143 164 VBOXVIDEOCM_CTX CmContext; 144 165 } VBOXWDDM_CONTEXT, *PVBOXWDDM_CONTEXT; 145 166 146 #define VBOXWDDMENTRY_2_ CONTEXT(_pE) ((PVBOXWDDM_CONTEXT)((uint8_t*)(_pE) - RT_OFFSETOF(VBOXWDDM_CONTEXT,ListEntry)))167 #define VBOXWDDMENTRY_2_SWAPCHAIN(_pE) ((PVBOXWDDM_SWAPCHAIN)((uint8_t*)(_pE) - RT_OFFSETOF(VBOXWDDM_SWAPCHAIN, DevExtListEntry))) 147 168 148 169 typedef struct VBOXWDDM_DMA_ALLOCINFO
Note:
See TracChangeset
for help on using the changeset viewer.