Changeset 75655 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/gallium/SvgaCmd.cpp
- Timestamp:
- Nov 21, 2018 11:30:22 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126835
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/gallium/SvgaCmd.cpp
r75443 r75655 25 25 */ 26 26 27 void SvgaCmdDefineScreen(void *pvCmd, uint32_t u32Id, uint32_t u32Width, uint32_t u32Height, uint32_t u32Offset) 27 void 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) 28 30 { 29 31 uint32_t *pu32Id = (uint32_t *)pvCmd; … … 32 34 *pu32Id = SVGA_CMD_DEFINE_SCREEN; 33 35 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; 38 43 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 = u32 Offset;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; 45 50 } 46 51
Note:
See TracChangeset
for help on using the changeset viewer.