VirtualBox

Ignore:
Timestamp:
May 30, 2010 7:27:02 PM (15 years ago)
Author:
vboxsync
Message:

wddm: open,create,destroy,lock,unlock resource

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.h

    r29710 r29883  
    4444#endif
    4545
    46 #define VBOXWDDM_ROUNDBOUND(_v, _b) (((_v) + ((_b) - 1)) & ~((_b) - 1))
    47 
    4846PVOID vboxWddmMemAlloc(IN SIZE_T cbSize);
    4947PVOID vboxWddmMemAllocZero(IN SIZE_T cbSize);
    5048VOID vboxWddmMemFree(PVOID pvMem);
    51 
    52 typedef struct VBOXWDDM_ALLOCINFO_SHAREDPRIMARYSURFACE
    53 {
    54     D3DDDI_RATIONAL                 RefreshRate;
    55     D3DDDI_VIDEO_PRESENT_SOURCE_ID  VidPnSourceId;
    56 } VBOXWDDM_ALLOCINFO_SHAREDPRIMARYSURFACE, *PVBOXWDDM_ALLOCINFO_SHAREDPRIMARYSURFACE;
    5749
    5850/* allocation */
     
    6254    UINT SegmentId;
    6355    VBOXVIDEOOFFSET offVram;
    64     union
    65     {
    66         VBOXWDDM_SURFACE_DESC SurfInfo;
    67     } u;
     56    BOOLEAN bVisible;
     57    BOOLEAN bAssigned;
     58    VBOXWDDM_SURFACE_DESC SurfDesc;
    6859} VBOXWDDM_ALLOCATION, *PVBOXWDDM_ALLOCATION;
    6960
    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
     61typedef struct VBOXWDDM_RESOURCE
    7862{
     63    VBOXWDDM_ALLOC_TYPE enmType;
     64    UINT SegmentId;
     65    VBOXVIDEOOFFSET offVram;
    7966    D3DDDI_RATIONAL RefreshRate;
    8067    D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;
    81 //    VBOXVIDEOOFFSET offAddress;
    8268    BOOLEAN bVisible;
    8369    BOOLEAN bAssigned;
    84 } VBOXWDDM_ALLOCATION_SHAREDPRIMARYSURFACE, *PVBOXWDDM_ALLOCATION_SHAREDPRIMARYSURFACE;
     70    VBOXWDDM_SURFACE_DESC SurfDesc;
     71    uint32_t cAllocations;
     72} VBOXWDDM_RESOURCE, *PVBOXWDDM_RESOURCE;
    8573
    86 #ifdef VBOXWDDM_RENDER_FROM_SHADOW
    87 typedef struct VBOXWDDM_ALLOCATION_SHADOWSURFACE
    88 {
    89     D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;
    90 //    VBOXVIDEOOFFSET offAddress;
    91     BOOLEAN bVisible;
    92     BOOLEAN bAssigned;
    93 } VBOXWDDM_ALLOCATION_SHADOWSURFACE, *PVBOXWDDM_ALLOCATION_SHADOWSURFACE;
    94 #endif
    9574
    9675typedef enum
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette