Changeset 33216 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Display
- Timestamp:
- Oct 18, 2010 7:26:40 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r33171 r33216 728 728 /* cr hgsmi */ 729 729 static VBOXCRHGSMI_CALLBACKS g_VBoxCrHgsmiCallbacks = {0}; 730 static VBOXUHGSMI_PRIVATE_KMT g_VBoxUhgsmiKmt; 731 static uint32_t g_cVBoxUhgsmiKmtRefs = 0; 730 #define VBOXUHGSMIKMT_PERTHREAD 731 #ifdef VBOXUHGSMIKMT_PERTHREAD 732 #define VBOXUHGSMIKMT_VAR(_type) __declspec(thread) _type 733 #else 734 #define VBOXUHGSMIKMT_VAR(_type) _type 735 #endif 736 static VBOXUHGSMIKMT_VAR(VBOXUHGSMI_PRIVATE_KMT) g_VBoxUhgsmiKmt; 737 static VBOXUHGSMIKMT_VAR(uint32_t) g_cVBoxUhgsmiKmtRefs = 0; 732 738 #endif 733 739 … … 5013 5019 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; 5014 5020 Assert(pDevice); 5021 VBOXDISPCRHGSMI_SCOPE_SET_DEV(pDevice); 5015 5022 Assert(pResource); 5016 5023 PVBOXWDDMDISP_ADAPTER pAdapter = pDevice->pAdapter; -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxUhgsmiDisp.cpp
r33146 r33216 58 58 59 59 int rc = vboxUhgsmiBaseLockData(pBuf, offLock, cbLock, fFlags, 60 &DdiLock.Flags, pBuffer->aLockPageIndices, &DdiLock.NumPages);60 &DdiLock.Flags, &DdiLock.NumPages, pBuffer->aLockPageIndices); 61 61 AssertRC(rc); 62 62 if (RT_FAILURE(rc)) -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxUhgsmiKmt.cpp
r33146 r33216 22 22 VBOXUHGSMI_BUFFER_PRIVATE_BASE BasePrivate; 23 23 PVBOXUHGSMI_PRIVATE_KMT pHgsmi; 24 CRITICAL_SECTION CritSect; 24 25 UINT aLockPageIndices[1]; 25 26 } VBOXUHGSMI_BUFFER_PRIVATE_KMT, *PVBOXUHGSMI_BUFFER_PRIVATE_KMT; … … 55 56 DdiLock.PrivateDriverData = NULL; 56 57 58 EnterCriticalSection(&pBuffer->CritSect); 59 57 60 int rc = vboxUhgsmiBaseLockData(pBuf, offLock, cbLock, fFlags, 58 &DdiLock.Flags, pBuffer->aLockPageIndices, &DdiLock.NumPages);61 &DdiLock.Flags, &DdiLock.NumPages, pBuffer->aLockPageIndices); 59 62 AssertRC(rc); 60 63 if (RT_FAILURE(rc)) … … 65 68 NTSTATUS Status = pBuffer->pHgsmi->Callbacks.pfnD3DKMTLock(&DdiLock); 66 69 Assert(!Status); 70 LeaveCriticalSection(&pBuffer->CritSect); 67 71 if (!Status) 68 72 { … … 132 136 if (hr == S_OK) 133 137 { 138 InitializeCriticalSection(&pBuf->CritSect); 139 134 140 Assert(Buf.DdiAllocInfo.hAllocation); 135 141 pBuf->BasePrivate.Base.pfnLock = vboxUhgsmiKmtBufferLock;
Note:
See TracChangeset
for help on using the changeset viewer.