Changeset 29883 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.h
- Timestamp:
- May 30, 2010 7:27:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.h
r29710 r29883 44 44 #endif 45 45 46 #define VBOXWDDM_ROUNDBOUND(_v, _b) (((_v) + ((_b) - 1)) & ~((_b) - 1))47 48 46 PVOID vboxWddmMemAlloc(IN SIZE_T cbSize); 49 47 PVOID vboxWddmMemAllocZero(IN SIZE_T cbSize); 50 48 VOID vboxWddmMemFree(PVOID pvMem); 51 52 typedef struct VBOXWDDM_ALLOCINFO_SHAREDPRIMARYSURFACE53 {54 D3DDDI_RATIONAL RefreshRate;55 D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;56 } VBOXWDDM_ALLOCINFO_SHAREDPRIMARYSURFACE, *PVBOXWDDM_ALLOCINFO_SHAREDPRIMARYSURFACE;57 49 58 50 /* allocation */ … … 62 54 UINT SegmentId; 63 55 VBOXVIDEOOFFSET offVram; 64 union 65 { 66 VBOXWDDM_SURFACE_DESC SurfInfo; 67 } u; 56 BOOLEAN bVisible; 57 BOOLEAN bAssigned; 58 VBOXWDDM_SURFACE_DESC SurfDesc; 68 59 } VBOXWDDM_ALLOCATION, *PVBOXWDDM_ALLOCATION; 69 60 70 #define VBOXWDDM_ALLOCATION_HEADSIZE() (sizeof (VBOXWDDM_ALLOCATION)) 71 #define VBOXWDDM_ALLOCATION_SIZE_FROMBODYSIZE(_s) (VBOXWDDM_ALLOCATION_HEADSIZE() + (_s)) 72 #define VBOXWDDM_ALLOCATION_SIZE(_tCmd) (VBOXWDDM_ALLOCATION_SIZE_FROMBODYSIZE(sizeof(_tCmd))) 73 #define VBOXWDDM_ALLOCATION_BODY(_p, _t) ( (_t*)(((uint8_t*)(_p)) + VBOXWDDM_ALLOCATION_HEADSIZE()) ) 74 #define VBOXWDDM_ALLOCATION_HEAD(_pb) ((VBOXWDDM_ALLOCATION*)((uint8_t *)(_pb) - VBOXWDDM_ALLOCATION_HEADSIZE())) 75 76 77 typedef struct VBOXWDDM_ALLOCATION_SHAREDPRIMARYSURFACE 61 typedef struct VBOXWDDM_RESOURCE 78 62 { 63 VBOXWDDM_ALLOC_TYPE enmType; 64 UINT SegmentId; 65 VBOXVIDEOOFFSET offVram; 79 66 D3DDDI_RATIONAL RefreshRate; 80 67 D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; 81 // VBOXVIDEOOFFSET offAddress;82 68 BOOLEAN bVisible; 83 69 BOOLEAN bAssigned; 84 } VBOXWDDM_ALLOCATION_SHAREDPRIMARYSURFACE, *PVBOXWDDM_ALLOCATION_SHAREDPRIMARYSURFACE; 70 VBOXWDDM_SURFACE_DESC SurfDesc; 71 uint32_t cAllocations; 72 } VBOXWDDM_RESOURCE, *PVBOXWDDM_RESOURCE; 85 73 86 #ifdef VBOXWDDM_RENDER_FROM_SHADOW87 typedef struct VBOXWDDM_ALLOCATION_SHADOWSURFACE88 {89 D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;90 // VBOXVIDEOOFFSET offAddress;91 BOOLEAN bVisible;92 BOOLEAN bAssigned;93 } VBOXWDDM_ALLOCATION_SHADOWSURFACE, *PVBOXWDDM_ALLOCATION_SHADOWSURFACE;94 #endif95 74 96 75 typedef enum
Note:
See TracChangeset
for help on using the changeset viewer.