Changeset 19464 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- May 6, 2009 9:12:09 PM (16 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/Makefile.kmk
r17610 r19464 33 33 VBoxDisp_DEFS += VBOX_VBVA_ADJUST_RECT 34 34 #VBoxDisp_DEFS += LOG_ENABLED 35 ifdef VBOX_WITH_VIDEOHWACCEL 36 VBoxDisp_DEFS += VBOX_WITH_VIDEOHWACCEL 37 endif 35 38 #VBoxDisp_DEFS += STAT_sunlover 36 39 VBoxDisp_SOURCES = \ … … 59 62 VBoxDisp_LIBS += \ 60 63 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB) 64 VBoxDisp_DEFS += VBOX_WITH_HGSMI 61 65 endif 62 66 -
trunk/src/VBox/Additions/WINNT/Graphics/Display/driver.h
r18246 r19464 75 75 { 76 76 ULONG cbVRAM; 77 77 78 78 ULONG offFrameBuffer; 79 79 ULONG cbFrameBuffer; 80 80 81 81 ULONG offDDRAWHeap; //@todo 82 82 ULONG cbDDRAWHeap; 83 83 84 84 ULONG offVBVABuffer; 85 85 ULONG cbVBVABuffer; 86 86 87 87 ULONG offDisplayInformation; 88 88 ULONG cbDisplayInformation; … … 111 111 ULONG ulMode; // Mode the mini-port driver is in. 112 112 LONG lDeltaScreen; // Distance from one scan to the next. 113 113 114 114 PVOID pOffscreenList; // linked list of DCI offscreen surfaces. 115 115 FLONG flRed; // For bitfields device, Red Mask … … 128 128 BOOL bSupportDCI; // Does the miniport support DCI? 129 129 FLONG flHooks; 130 130 131 131 #ifndef VBOX_WITH_HGSMI 132 132 VBVAENABLERESULT vbva; … … 165 165 VBVABUFFER *pVBVA; /* Pointer to the pjScreen + layout->offVBVABuffer. NULL if VBVA is not enabled. */ 166 166 #endif /* VBOX_WITH_HGSMI */ 167 168 #ifdef VBOX_WITH_VIDEOHWACCEL 169 BOOLEAN bVHWAEnabled; 170 #endif 167 171 }; 168 172 169 #ifdef VBOX_WITH_OPENGL 170 typedef struct 171 { 172 DWORD dwVersion; 173 DWORD dwDriverVersion; 174 WCHAR szDriverName[256]; 175 } OPENGL_INFO, *POPENGL_INFO; 176 #endif 173 #ifdef VBOX_WITH_OPENGL 174 typedef struct 175 { 176 DWORD dwVersion; 177 DWORD dwDriverVersion; 178 WCHAR szDriverName[256]; 179 } OPENGL_INFO, *POPENGL_INFO; 180 #endif 177 181 178 182 #ifndef VBOX_WITH_HGSMI … … 245 249 void drvLoadEng (void); 246 250 251 #ifdef VBOX_WITH_VIDEOHWACCEL 252 VBVAVHWACMD_HDR* vboxVHWACreateCommand (PPDEV ppdev, VBVAVHWACMD_LENGTH cbCmd); 253 void vboxVHWAFreeCommand (PPDEV ppdev, VBVAVHWACMD_HDR* pCmd); 254 void vboxVHWASubmitCommand (PPDEV ppdev, VBVAVHWACMD_HDR* pCmd); 255 #endif 256 247 257 BOOL bIsScreenSurface (SURFOBJ *pso); 248 258 … … 252 262 { 253 263 PPDEV ppdev = (PPDEV)pso->dhpdev; 254 264 255 265 if (ppdev) 256 266 { … … 262 272 } 263 273 } 264 274 265 275 return pso; 266 276 } … … 276 286 case BMF_32BPP: return 4; 277 287 } 278 288 279 289 return 0; 280 290 } … … 290 300 #define VRDP_TEXT_MAX_GLYPH_SIZE 0x100 291 301 #define VRDP_TEXT_MAX_GLYPHS 0xfe 292 302 293 303 BOOL vboxReportText (PPDEV ppdev, 294 304 VRDPCLIPRECTS *pClipRects, -
trunk/src/VBox/Additions/WINNT/Graphics/Display/vbox.c
r19430 r19464 55 55 56 56 DISPDBG((1, "VBoxDisp::vboxVbvaEnable called\n")); 57 57 58 58 if (!ghsemHwBuffer) 59 59 { … … 388 388 389 389 DISPDBG((1, "VBoxDisp::vboxVbvaEnable called\n")); 390 390 391 391 if (ppdev->bHGSMISupported) 392 392 { 393 393 VBVABUFFER *pVBVA = (VBVABUFFER *)((uint8_t *)ppdev->pjScreen + ppdev->layout.offVBVABuffer); 394 394 395 395 pVBVA->u32HostEvents = 0; 396 396 pVBVA->u32SupportedOrders = 0; … … 406 406 ppdev->pRecord = NULL; 407 407 ppdev->pVBVA = pVBVA; 408 408 409 409 bRc = vboxVBVAInformHost (ppdev, TRUE); 410 410 } … … 689 689 return; 690 690 } 691 692 # ifdef VBOX_WITH_VIDEOHWACCEL 693 694 VBVAVHWACMD_HDR* vboxVHWACreateCommand (PPDEV ppdev, VBVAVHWACMD_LENGTH cbCmd) 695 { 696 VBVAVHWACMD_HDR* pHdr = (VBVAVHWACMD_HDR*)HGSMIHeapAlloc (&ppdev->hgsmiDisplayHeap, 697 cbCmd, 698 HGSMI_CH_VBVA, 699 VBVA_VHWA_CMD); 700 if (!pHdr) 701 { 702 DISPDBG((0, "VBoxDISP::vboxVHWACreateCommand: HGSMIHeapAlloc failed\n")); 703 } 704 705 return pHdr; 706 } 707 708 void vboxVHWAFreeCommand (PPDEV ppdev, VBVAVHWACMD_HDR* pCmd) 709 { 710 HGSMIHeapFree (&ppdev->hgsmiDisplayHeap, pCmd); 711 } 712 713 void vboxVHWASubmitCommand (PPDEV ppdev, VBVAVHWACMD_HDR* pCmd) 714 { 715 vboxHGSMIBufferSubmit (ppdev, pCmd); 716 } 717 718 # endif 719 691 720 #endif /* VBOX_WITH_HGSMI */ -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/Makefile.kmk
r17583 r19464 59 59 VBoxVideo_LIBS += \ 60 60 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB) 61 VBoxVideo_DEFS += VBOX_WITH_HGSMI 61 62 endif 62 63
Note:
See TracChangeset
for help on using the changeset viewer.