Changeset 48732 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Sep 27, 2013 1:07:09 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 89367
- Location:
- trunk/src/VBox/Additions/WINNT
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r48643 r48732 3691 3691 { 3692 3692 PVBOXWDDM_CONTEXT pContext = (PVBOXWDDM_CONTEXT)pEscape->hContext; 3693 #ifdef VBOX_DISPIF_WITH_OPCONTEXT 3693 3694 if (!pContext) 3694 3695 { … … 3704 3705 break; 3705 3706 } 3706 3707 #endif 3707 3708 /* visible regions for seamless */ 3708 3709 LPRGNDATA lpRgnData = VBOXDISPIFESCAPE_DATA(pEscapeHdr, RGNDATA); … … 3857 3858 } 3858 3859 3859 #if 03860 #ifdef VBOX_DISPIF_WITH_OPCONTEXT 3860 3861 /* win8.1 does not allow context-based escapes for display-only mode */ 3861 3862 PVBOXWDDM_CONTEXT pContext = (PVBOXWDDM_CONTEXT)pEscape->hContext; … … 3889 3890 } 3890 3891 3891 #if 03892 #ifdef VBOX_DISPIF_WITH_OPCONTEXT 3892 3893 /* win8.1 does not allow context-based escapes for display-only mode */ 3893 3894 PVBOXWDDM_CONTEXT pContext = (PVBOXWDDM_CONTEXT)pEscape->hContext; … … 3931 3932 } 3932 3933 3933 #if 03934 #ifdef VBOX_DISPIF_WITH_OPCONTEXT 3934 3935 /* win8.1 does not allow context-based escapes for display-only mode */ 3935 3936 PVBOXWDDM_CONTEXT pContext = (PVBOXWDDM_CONTEXT)pEscape->hContext; -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp
r48154 r48732 37 37 PCVBOXDISPIF pIf; 38 38 VBOXDISPKMT_ADAPTER Adapter; 39 #ifdef VBOX_DISPIF_WITH_OPCONTEXT 39 40 VBOXDISPKMT_DEVICE Device; 40 41 VBOXDISPKMT_CONTEXT Context; 42 #endif 41 43 } VBOXDISPIF_OP; 42 44 … … 510 512 if (SUCCEEDED(hr)) 511 513 { 514 #ifdef VBOX_DISPIF_WITH_OPCONTEXT 512 515 hr = vboxDispKmtCreateDevice(&pOp->Adapter, &pOp->Device); 513 516 if (SUCCEEDED(hr)) … … 516 519 0, 0, NULL, 0ULL); 517 520 if (SUCCEEDED(hr)) 521 #endif 518 522 return ERROR_SUCCESS; 523 #ifdef VBOX_DISPIF_WITH_OPCONTEXT 519 524 else 520 525 WARN(("VBoxTray: vboxDispKmtCreateContext failed hr 0x%x", hr)); … … 526 531 527 532 vboxDispKmtCloseAdapter(&pOp->Adapter); 533 #endif 528 534 } 529 535 … … 533 539 static VOID vboxDispIfOpEnd(VBOXDISPIF_OP *pOp) 534 540 { 541 #ifdef VBOX_DISPIF_WITH_OPCONTEXT 535 542 vboxDispKmtDestroyContext(&pOp->Context); 536 543 vboxDispKmtDestroyDevice(&pOp->Device); 544 #endif 537 545 vboxDispKmtCloseAdapter(&pOp->Adapter); 538 546 } … … 1304 1312 D3DKMT_ESCAPE EscapeData = {0}; 1305 1313 EscapeData.hAdapter = pOp->Adapter.hAdapter; 1306 #if 01314 #ifdef VBOX_DISPIF_WITH_OPCONTEXT 1307 1315 /* win8.1 does not allow context-based escapes for display-only mode */ 1308 1316 EscapeData.hDevice = pOp->Device.hDevice; … … 1695 1703 D3DKMT_ESCAPE EscapeData = {0}; 1696 1704 EscapeData.hAdapter = pOp->Adapter.hAdapter; 1697 #if 01705 #ifdef VBOX_DISPIF_WITH_OPCONTEXT 1698 1706 /* win8.1 does not allow context-based escapes for display-only mode */ 1699 1707 EscapeData.hDevice = pOp->Device.hDevice; … … 1992 2000 if (SUCCEEDED(hr)) 1993 2001 { 2002 #ifdef VBOX_DISPIF_WITH_OPCONTEXT 1994 2003 hr = vboxDispKmtCreateDevice(&pSeamless->modeData.wddm.Adapter, &pSeamless->modeData.wddm.Device); 1995 2004 if (SUCCEEDED(hr)) … … 1998 2007 0, 0, hEvent, 0ULL); 1999 2008 if (SUCCEEDED(hr)) 2009 #endif 2000 2010 return ERROR_SUCCESS; 2011 #ifdef VBOX_DISPIF_WITH_OPCONTEXT 2001 2012 else 2002 2013 WARN(("VBoxTray: vboxDispKmtCreateContext failed hr 0x%x", hr)); … … 2008 2019 2009 2020 vboxDispKmtCloseAdapter(&pSeamless->modeData.wddm.Adapter); 2021 #endif 2010 2022 } 2011 2023 … … 2015 2027 static DWORD vboxDispIfSeamlesTermWDDM(VBOXDISPIF_SEAMLESS *pSeamless) 2016 2028 { 2029 #ifdef VBOX_DISPIF_WITH_OPCONTEXT 2017 2030 vboxDispKmtDestroyContext(&pSeamless->modeData.wddm.Context); 2018 2031 vboxDispKmtDestroyDevice(&pSeamless->modeData.wddm.Device); 2032 #endif 2019 2033 vboxDispKmtCloseAdapter(&pSeamless->modeData.wddm.Adapter); 2020 2034 … … 2026 2040 D3DKMT_ESCAPE EscapeData = {0}; 2027 2041 EscapeData.hAdapter = pSeamless->modeData.wddm.Adapter.hAdapter; 2042 #ifdef VBOX_DISPIF_WITH_OPCONTEXT 2028 2043 EscapeData.hDevice = pSeamless->modeData.wddm.Device.hDevice; 2029 2044 EscapeData.hContext = pSeamless->modeData.wddm.Context.hContext; 2045 #endif 2030 2046 EscapeData.Type = D3DKMT_ESCAPE_DRIVERPRIVATE; 2031 2047 EscapeData.Flags.HardwareAccess = 1; -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.h
r48070 r48732 93 93 { 94 94 VBOXDISPKMT_ADAPTER Adapter; 95 # ifdef VBOX_DISPIF_WITH_OPCONTEXT 95 96 VBOXDISPKMT_DEVICE Device; 96 97 VBOXDISPKMT_CONTEXT Context; 98 # endif 97 99 } wddm; 98 100 #endif
Note:
See TracChangeset
for help on using the changeset viewer.