VirtualBox

Changeset 32877 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Oct 1, 2010 10:51:28 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: basics for chromium over hgsmi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxVideo.h

    r32824 r32877  
    836836# define VBVA_VHWA_CMD    9
    837837#endif /* # ifdef VBOX_WITH_VIDEOHWACCEL */
    838 #ifdef VBOXVDMA
     838#ifdef VBOX_WITH_VDMA
    839839# define VBVA_VDMA_CTL   10 /* setup G<->H DMA channel info */
    840840# define VBVA_VDMA_CMD    11 /* G->H DMA command             */
     
    845845# define VBVAHG_EVENT              1
    846846# define VBVAHG_DISPLAY_CUSTOM     2
    847 #ifdef VBOXVDMA
     847#ifdef VBOX_WITH_VDMA
    848848# define VBVAHG_SHGSMI_COMPLETION  3
    849849#endif
     
    11251125    VBOXVDMACMD_TYPE_DMA_PRESENT_CLRFILL,
    11261126    VBOXVDMACMD_TYPE_DMA_PRESENT_FLIP,
    1127     VBOXVDMACMD_TYPE_DMA_NOP
     1127    VBOXVDMACMD_TYPE_DMA_NOP,
     1128    VBOXVDMACMD_TYPE_CHROMIUM_CMD
    11281129} VBOXVDMACMD_TYPE;
    11291130
     
    11311132#endif
    11321133
    1133 #ifdef VBOXVDMA
     1134#ifdef VBOX_WITH_VDMA
    11341135# pragma pack(1)
    11351136
     
    12321233typedef struct VBOXVDMACBUF_DR
    12331234{
    1234     uint32_t fFlags;
    1235     uint32_t cbBuf;
    1236     uint32_t u32FenceId;
     1235    uint32_t fFlags : 16;
     1236    uint32_t cbBuf  : 16;
    12371237    /* RT_SUCCESS()     - on success
    12381238     * VERR_INTERRUPTED - on preemption
    12391239     * VERR_xxx         - on error */
    12401240    int32_t  rc;
    1241     uint64_t u64GuestContext;
    12421241    union
    12431242    {
     
    12451244        VBOXVIDEOOFFSET offVramBuf;
    12461245    } Location;
     1246    uint64_t aGuestData[6];
    12471247} VBOXVDMACBUF_DR, *PVBOXVDMACBUF_DR;
    12481248
     
    13041304} VBOXVDMACMD_DMA_BPB_FILL, *PVBOXVDMACMD_DMA_BPB_FILL;
    13051305
     1306typedef struct VBOXVDMACMD_CHROMIUM_BUFFER
     1307{
     1308    VBOXVIDEOOFFSET offBuffer;
     1309    uint32_t cbBuffer;
     1310    uint32_t u32GuesData;
     1311    uint64_t u64GuesData;
     1312} VBOXVDMACMD_CHROMIUM_BUFFER, *PVBOXVDMACMD_CHROMIUM_BUFFER;
     1313
     1314typedef struct VBOXVDMACMD_CHROMIUM_CMD
     1315{
     1316    /* the number of buffers is specified in the VBOXVDMACMD::u32CmdSpecific*/
     1317    VBOXVDMACMD_CHROMIUM_BUFFER aBuffers[1];
     1318} VBOXVDMACMD_CHROMIUM_CMD, *PVBOXVDMACMD_CHROMIUM_CMD;
     1319
    13061320# pragma pack()
    1307 #endif /* #ifdef VBOXVDMA */
     1321#endif /* #ifdef VBOX_WITH_VDMA */
    13081322
    13091323#ifdef VBOXVDMA_WITH_VBVA
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