Changeset 49180 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
- Timestamp:
- Oct 18, 2013 12:35:36 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 90053
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp
r48944 r49180 39 39 40 40 /* the number of frames to collect data before doing dump/reset */ 41 #define VBOXDISPPROFILE_DDI_DUMP_FRAME_COUNT 0x ffffffff41 #define VBOXDISPPROFILE_DDI_DUMP_FRAME_COUNT 0x20 42 42 43 43 struct VBOXDISPPROFILE_GLOBAL { … … 5459 5459 Assert(hr == S_OK); 5460 5460 if (hr == S_OK) 5461 { 5462 if (pDevice->hHgsmiTransportModule) 5463 FreeLibrary(pDevice->hHgsmiTransportModule); 5461 5464 RTMemFree(pDevice); 5465 } 5462 5466 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5463 5467 return hr; … … 6009 6013 if (hr == S_OK) 6010 6014 { 6011 6015 #ifdef VBOXDISP_EARLYCREATEDEVICE 6012 6016 PVBOXWDDMDISP_RESOURCE pRc = vboxResourceAlloc(2); 6013 6017 Assert(pRc); … … 6045 6049 hr = E_OUTOFMEMORY; 6046 6050 } 6047 6051 #else 6048 6052 //# define VBOXDISP_TEST_SWAPCHAIN 6049 6053 # ifdef VBOXDISP_TEST_SWAPCHAIN … … 6051 6055 # endif 6052 6056 break; 6053 6057 #endif 6054 6058 6055 6059 HRESULT tmpHr = vboxDispCmCtxDestroy(pDevice, &pDevice->DefaultContext); … … 6073 6077 vboxVDbgPrintR((__FUNCTION__": RTMemAllocZ returned NULL\n")); 6074 6078 hr = E_OUTOFMEMORY; 6079 } 6080 6081 if (SUCCEEDED(hr)) 6082 { 6083 if (GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, 6084 (LPCWSTR)pDevice->RtCallbacks.pfnAllocateCb, 6085 &pDevice->hHgsmiTransportModule)) 6086 { 6087 Assert(pDevice->hHgsmiTransportModule); 6088 } 6089 else 6090 { 6091 DWORD winEr = GetLastError(); 6092 WARN(("GetModuleHandleEx failed winEr %d, ignoring", winEr)); 6093 pDevice->hHgsmiTransportModule = 0; 6094 } 6075 6095 } 6076 6096 -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.h
r48070 r49180 212 212 struct VBOXWDDMDISP_RESOURCE *aSamplerTextures[VBOXWDDMDISP_TOTAL_SAMPLERS]; 213 213 214 HMODULE hHgsmiTransportModule; 215 214 216 #ifdef VBOX_WDDMDISP_WITH_PROFILE 215 217 VBoxDispProfileFpsCounter ProfileDdiFps;
Note:
See TracChangeset
for help on using the changeset viewer.