VirtualBox

Ignore:
Timestamp:
Nov 21, 2018 11:30:22 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126835
Message:

WDDM: extended GaScreenDefine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/gallium/SvgaCmd.cpp

    r75443 r75655  
    2525 */
    2626
    27 void SvgaCmdDefineScreen(void *pvCmd, uint32_t u32Id, uint32_t u32Width, uint32_t u32Height, uint32_t u32Offset)
     27void SvgaCmdDefineScreen(void *pvCmd, uint32_t u32Id, bool fActivate,
     28                         int32_t xOrigin, int32_t yOrigin, uint32_t u32Width, uint32_t u32Height,
     29                         bool fPrimary, uint32_t u32VRAMOffset, bool fBlank)
    2830{
    2931    uint32_t *pu32Id = (uint32_t *)pvCmd;
     
    3234    *pu32Id = SVGA_CMD_DEFINE_SCREEN;
    3335
    34     pCommand->screen.structSize = sizeof(SVGAScreenObject);
    35     pCommand->screen.id = u32Id;
    36     pCommand->screen.flags = SVGA_SCREEN_MUST_BE_SET | SVGA_SCREEN_IS_PRIMARY;
    37     pCommand->screen.size.width = u32Width;
     36    pCommand->screen.structSize  = sizeof(SVGAScreenObject);
     37    pCommand->screen.id          = u32Id;
     38    pCommand->screen.flags       = SVGA_SCREEN_MUST_BE_SET;
     39    pCommand->screen.flags      |= fPrimary  ? SVGA_SCREEN_IS_PRIMARY : 0;
     40    pCommand->screen.flags      |= !fActivate? SVGA_SCREEN_DEACTIVATE : 0;
     41    pCommand->screen.flags      |= fBlank    ? SVGA_SCREEN_BLANKING   : 0;
     42    pCommand->screen.size.width  = u32Width;
    3843    pCommand->screen.size.height = u32Height;
    39     pCommand->screen.root.x = 0;
    40     pCommand->screen.root.y = 0;
    41     pCommand->screen.backingStore.ptr.gmrId = SVGA_GMR_FRAMEBUFFER;
    42     pCommand->screen.backingStore.ptr.offset = u32Offset;
    43     pCommand->screen.backingStore.pitch = u32Width * 4;
    44     pCommand->screen.cloneCount = 1;
     44    pCommand->screen.root.x      = xOrigin;
     45    pCommand->screen.root.y      = yOrigin;
     46    pCommand->screen.backingStore.ptr.gmrId  = SVGA_GMR_FRAMEBUFFER;
     47    pCommand->screen.backingStore.ptr.offset = u32VRAMOffset;
     48    pCommand->screen.backingStore.pitch      = u32Width * 4;
     49    pCommand->screen.cloneCount  = 1;
    4550}
    4651
Note: See TracChangeset for help on using the changeset viewer.

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