Changeset 33241 in vbox for trunk/src/VBox/Additions/WINNT/Graphics
- Timestamp:
- Oct 19, 2010 4:37:06 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Display
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/Makefile.kmk
r33117 r33241 86 86 VBoxDispD3D_DEFS += VBOXWDDM_TEST_UHGSMI 87 87 endif 88 ifdef VBOX_WITH_CRHGSMI89 VBoxDispD3D_DEFS += VBOX_WITH_CRHGSMI90 endif91 88 VBoxDispD3D_SOURCES = \ 92 89 wddm/VBoxDispD3D.cpp \ … … 95 92 wddm/VBoxDispMp.cpp \ 96 93 wddm/VBoxScreen.cpp \ 97 $(if $(VBOX_WITH_CRHGSMI),wddm/VBoxUhgsmiDisp.cpp,) \98 $(if $(VBOX_WITH_CRHGSMI),wddm/VBoxUhgsmiKmt.cpp,) \99 94 wddm/VBoxDispMpTst.cpp \ 100 95 wddm/VBoxDispD3D.def \ 101 96 wddm/VBoxDispD3D.rc 97 #ifdef VBOX_WITH_CRHGSMI 98 #VBoxDispD3D_SOURCES += \ 99 # wddm/VBoxUhgsmiDisp.cpp \ 100 # wddm/VBoxUhgsmiKmt.cpp 101 #VBoxDispD3D_DEFS += VBOX_WITH_CRHGSMI 102 #endif 102 103 VBoxDispD3D_LIBS = \ 103 104 $(VBOX_LIB_IPRT_GUEST_R3) \ -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxCrHgsmi.cpp
r33171 r33241 109 109 VBOXCRHGSMI_DECL(int) VBoxCrHgsmiTerm() 110 110 { 111 Assert(0); 112 #if 0 111 113 PVBOXUHGSMI_PRIVATE_KMT pHgsmiGL = gt_pHgsmiGL; 112 114 if (pHgsmiGL) … … 119 121 if (g_pfnVBoxDispCrHgsmiTerm) 120 122 g_pfnVBoxDispCrHgsmiTerm(); 123 #endif 121 124 return VINF_SUCCESS; 122 125 } -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r33216 r33241 2903 2903 2904 2904 vboxVDbgPrint(("VBoxDispD3D: DLL loaded.\n")); 2905 #ifdef VBOXWDDMDISP_DEBUG 2905 #ifdef VBOXWDDMDISP_DEBUG_VEHANDLER 2906 2906 vboxVDbgVEHandlerRegister(); 2907 2907 #endif … … 2939 2939 case DLL_PROCESS_DETACH: 2940 2940 { 2941 #ifdef VBOXWDDMDISP_DEBUG 2941 #ifdef VBOXWDDMDISP_DEBUG_VEHANDLER 2942 2942 vboxVDbgVEHandlerUnregister(); 2943 2943 #endif … … 8011 8011 vboxVDbgDoMpPrintF(pDevice, "%s left(%d), top(%d), right(%d), bottom(%d) %s", pPrefix, pRect->left, pRect->top, pRect->right, pRect->bottom, pSuffix); 8012 8012 } 8013 #endif 8014 8015 #ifdef VBOXWDDMDISP_DEBUG_VEHANDLER 8013 8016 8014 8017 static PVOID g_VBoxWDbgVEHandler = NULL; … … 8023 8026 break; 8024 8027 default: 8025 Assert (0);8028 AssertRelease(0); 8026 8029 break; 8027 8030 } -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3DCmn.h
r33117 r33241 44 44 # define VBOXWDDMDISP_DEBUG_FLOW 45 45 # define VBOXWDDMDISP_DEBUG_DUMPSURFDATA 46 # define VBOXWDDMDISP_DEBUG_VEHANDLER 46 47 #endif 48 49 //#define VBOXWDDMDISP_DEBUG_VEHANDLER 47 50 48 51 #if defined(VBOXWDDMDISP_DEBUG) || defined(VBOX_WDDMDISP_WITH_PROFILE) || defined(VBOXWDDM_TEST_UHGSMI) … … 70 73 #endif 71 74 75 #ifdef VBOXWDDMDISP_DEBUG_VEHANDLER 76 void vboxVDbgVEHandlerRegister(); 77 void vboxVDbgVEHandlerUnregister(); 78 #endif 79 72 80 #ifdef VBOXWDDMDISP_DEBUG 73 81 extern bool g_VDbgTstDumpEnable; … … 77 85 void vboxVDbgDoMpPrintRect(const PVBOXWDDMDISP_DEVICE pDevice, const char * pPrefix, const RECT *pRect, const char * pSuffix); 78 86 void vboxVDbgDoMpPrintAlloc(const PVBOXWDDMDISP_DEVICE pDevice, const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const char * pSuffix); 79 void vboxVDbgVEHandlerRegister();80 void vboxVDbgVEHandlerUnregister();81 87 82 88 #define vboxVDbgBreak() AssertBreakpoint() -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxUhgsmiBase.h
r33171 r33241 77 77 if (cPages == cBufPages) 78 78 { 79 *pNumPages = 0; 79 80 fLockFlags.LockEntire = 1; 80 81 } -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxUhgsmiDisp.cpp
r33216 r33241 53 53 { 54 54 PVBOXUHGSMI_BUFFER_PRIVATE_D3D pBuffer = VBOXUHGSMID3D_GET_BUFFER(pBuf); 55 D3DDDICB_LOCK DdiLock ;55 D3DDDICB_LOCK DdiLock = {0}; 56 56 DdiLock.hAllocation = pBuffer->BasePrivate.hAllocation; 57 57 DdiLock.PrivateDriverData = 0; … … 63 63 return rc; 64 64 65 DdiLock.pPages = pBuffer->aLockPageIndices; 65 if (DdiLock.NumPages) 66 DdiLock.pPages = pBuffer->aLockPageIndices; 67 else 68 DdiLock.pPages = NULL; 66 69 67 70 HRESULT hr = pBuffer->pDevice->RtCallbacks.pfnLockCb(pBuffer->pDevice->hDevice, &DdiLock); … … 107 110 108 111 PVBOXUHGSMI_PRIVATE_D3D pPrivate = VBOXUHGSMID3D_GET(pHgsmi); 109 PVBOXUHGSMI_BUFFER_PRIVATE_D3D pBuf = (PVBOXUHGSMI_BUFFER_PRIVATE_D3D)RTMemAllocZ(RT_OFFSETOF(VBOXUHGSMI_BUFFER_PRIVATE_D3D, aLockPageIndices ));112 PVBOXUHGSMI_BUFFER_PRIVATE_D3D pBuf = (PVBOXUHGSMI_BUFFER_PRIVATE_D3D)RTMemAllocZ(RT_OFFSETOF(VBOXUHGSMI_BUFFER_PRIVATE_D3D, aLockPageIndices[cPages])); 110 113 Assert(pBuf); 111 114 if (pBuf) -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxUhgsmiKmt.cpp
r33216 r33241 51 51 { 52 52 PVBOXUHGSMI_BUFFER_PRIVATE_KMT pBuffer = VBOXUHGSMIKMT_GET_BUFFER(pBuf); 53 D3DKMT_LOCK DdiLock ;53 D3DKMT_LOCK DdiLock = {0}; 54 54 DdiLock.hDevice = pBuffer->pHgsmi->Device.hDevice; 55 55 DdiLock.hAllocation = pBuffer->BasePrivate.hAllocation; … … 64 64 return rc; 65 65 66 DdiLock.pPages = pBuffer->aLockPageIndices; 66 if (DdiLock.NumPages) 67 DdiLock.pPages = pBuffer->aLockPageIndices; 68 else 69 DdiLock.pPages = NULL; 67 70 68 71 NTSTATUS Status = pBuffer->pHgsmi->Callbacks.pfnD3DKMTLock(&DdiLock); … … 111 114 112 115 PVBOXUHGSMI_PRIVATE_KMT pPrivate = VBOXUHGSMIKMT_GET(pHgsmi); 113 PVBOXUHGSMI_BUFFER_PRIVATE_KMT pBuf = (PVBOXUHGSMI_BUFFER_PRIVATE_KMT)RTMemAllocZ(RT_OFFSETOF(VBOXUHGSMI_BUFFER_PRIVATE_KMT, aLockPageIndices ));116 PVBOXUHGSMI_BUFFER_PRIVATE_KMT pBuf = (PVBOXUHGSMI_BUFFER_PRIVATE_KMT)RTMemAllocZ(RT_OFFSETOF(VBOXUHGSMI_BUFFER_PRIVATE_KMT, aLockPageIndices[cPages])); 114 117 Assert(pBuf); 115 118 if (pBuf) … … 240 243 HRESULT vboxUhgsmiKmtDestroy(PVBOXUHGSMI_PRIVATE_KMT pHgsmi) 241 244 { 245 Assert(0); 242 246 HRESULT hr = vboxDispKmtDestroyContext(&pHgsmi->Context); 243 247 Assert(hr == S_OK);
Note:
See TracChangeset
for help on using the changeset viewer.