Changeset 83827 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/mp
- Timestamp:
- Apr 19, 2020 2:02:30 AM (5 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video/mp
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPVidModes.cpp
r82968 r83827 18 18 #include "VBoxMPCommon.h" 19 19 20 #if _MSC_VER >= 1400 /* bird: MS fixed swprintf to be standard-conforming... */20 #if _MSC_VER >= 1400 && _MSC_VER <= 1410 /* bird: MS fixed swprintf to be standard-conforming... */ 21 21 #define _INC_SWPRINTF_INL_ 22 22 extern "C" int __cdecl swprintf(wchar_t *, const wchar_t *, ...); … … 802 802 * regardless of conditions always add 2 entries to the table. 803 803 */ 804 BOOLEANbAlternativeIndex = FALSE;804 bAlternativeIndex = FALSE; 805 805 806 806 BOOLEAN bChanged = (pExt->Prev_xres!=specialMode.VisScreenWidth -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp
r82968 r83827 1091 1091 static void vboxUmdDumpDword(DWORD *pvData, DWORD cData) 1092 1092 { 1093 char aBuf[16*4];1094 1093 DWORD dw1, dw2, dw3, dw4; 1095 1094 for (UINT i = 0; i < (cData & (~3)); i+=4) … … 1099 1098 dw3 = *pvData++; 1100 1099 dw4 = *pvData++; 1101 sprintf(aBuf, "0x%08x, 0x%08x, 0x%08x, 0x%08x,\n", dw1, dw2, dw3, dw4); 1102 LOGREL(("%s", aBuf)); 1100 LOGREL(("0x%08x, 0x%08x, 0x%08x, 0x%08x,\n", dw1, dw2, dw3, dw4)); 1103 1101 } 1104 1102 … … 1110 1108 dw2 = *pvData++; 1111 1109 dw3 = *pvData++; 1112 sprintf(aBuf, "0x%08x, 0x%08x, 0x%08x\n", dw1, dw2, dw3); 1113 LOGREL(("%s", aBuf)); 1110 LOGREL(("0x%08x, 0x%08x, 0x%08x\n", dw1, dw2, dw3)); 1114 1111 break; 1115 1112 case 2: 1116 1113 dw1 = *pvData++; 1117 1114 dw2 = *pvData++; 1118 sprintf(aBuf, "0x%08x, 0x%08x\n", dw1, dw2); 1119 LOGREL(("%s", aBuf)); 1115 LOGREL(("0x%08x, 0x%08x\n", dw1, dw2)); 1120 1116 break; 1121 1117 case 1: 1122 1118 dw1 = *pvData++; 1123 sprintf(aBuf, "0x%8x\n", dw1); 1124 LOGREL(("%s", aBuf)); 1119 LOGREL(("0x%8x\n", dw1)); 1125 1120 break; 1126 1121 default: -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r82968 r83827 3316 3316 if (pAlloc->bAssigned) 3317 3317 { 3318 PVBOXMP_DEVEXT pDevExt = pDevice->pAdapter;3319 Assert(pAlloc->AllocData.SurfDesc.VidPnSourceId < (D3DDDI_VIDEO_PRESENT_SOURCE_ID)VBoxCommonFromDeviceExt(pDevExt )->cDisplays);3320 PVBOXWDDM_SOURCE pSource = &pDevExt ->aSources[pAlloc->AllocData.SurfDesc.VidPnSourceId];3318 PVBOXMP_DEVEXT pDevExt2 = pDevice->pAdapter; 3319 Assert(pAlloc->AllocData.SurfDesc.VidPnSourceId < (D3DDDI_VIDEO_PRESENT_SOURCE_ID)VBoxCommonFromDeviceExt(pDevExt2)->cDisplays); 3320 PVBOXWDDM_SOURCE pSource = &pDevExt2->aSources[pAlloc->AllocData.SurfDesc.VidPnSourceId]; 3321 3321 if (pSource->AllocData.hostID != pAlloc->AllocData.hostID) 3322 3322 { … … 3324 3324 pSource->u8SyncState &= ~VBOXWDDM_HGSYNC_F_SYNCED_LOCATION; 3325 3325 3326 vboxWddmGhDisplayCheckSetInfo(pDevExt );3326 vboxWddmGhDisplayCheckSetInfo(pDevExt2); 3327 3327 } 3328 3328 } -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/gallium/VBoxMPGaWddm.cpp
r83694 r83827 1476 1476 gaFenceObjectsLock(pGaDevExt); 1477 1477 1478 GAFENCEOBJECT *pIter, *pNext; 1479 RTListForEachSafe(&pGaDevExt->fenceObjects.list, pIter, pNext, GAFENCEOBJECT, node) 1480 { 1481 if (pIter->u32FenceState == GAFENCE_STATE_SUBMITTED) 1482 { 1483 if (gaFenceCmp(pIter->u32SubmissionFenceId, u32LastCompletedFenceId) <= 0) 1484 { 1485 GALOG(("u32SubmissionFenceId %u -> SIGNALED %RU64 ns\n", 1486 pIter->u32SubmissionFenceId, RTTimeNanoTS() - pIter->u64SubmittedTS)); 1487 1488 ASMAtomicWriteU32(&pGaDevExt->u32LastCompletedSeqNo, pIter->u32SeqNo); 1489 pIter->u32FenceState = GAFENCE_STATE_SIGNALED; 1490 if (RT_BOOL(pIter->fu32FenceFlags & GAFENCE_F_WAITED)) 1478 { 1479 GAFENCEOBJECT *pIter, *pNext; 1480 RTListForEachSafe(&pGaDevExt->fenceObjects.list, pIter, pNext, GAFENCEOBJECT, node) 1481 { 1482 if (pIter->u32FenceState == GAFENCE_STATE_SUBMITTED) 1483 { 1484 if (gaFenceCmp(pIter->u32SubmissionFenceId, u32LastCompletedFenceId) <= 0) 1491 1485 { 1492 KeSetEvent(&pIter->event, 0, FALSE); 1486 GALOG(("u32SubmissionFenceId %u -> SIGNALED %RU64 ns\n", 1487 pIter->u32SubmissionFenceId, RTTimeNanoTS() - pIter->u64SubmittedTS)); 1488 1489 ASMAtomicWriteU32(&pGaDevExt->u32LastCompletedSeqNo, pIter->u32SeqNo); 1490 pIter->u32FenceState = GAFENCE_STATE_SIGNALED; 1491 if (RT_BOOL(pIter->fu32FenceFlags & GAFENCE_F_WAITED)) 1492 { 1493 KeSetEvent(&pIter->event, 0, FALSE); 1494 } 1495 1496 GaFenceUnrefLocked(pGaDevExt, pIter); 1493 1497 } 1494 1495 GaFenceUnrefLocked(pGaDevExt, pIter);1496 1498 } 1497 1499 } -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPIOCTL.cpp
r82968 r83827 34 34 } 35 35 36 #ifndef DOXYGEN_RUNNING 37 # if RT_MSC_PREREQ(RT_MSC_VER_VC141) 38 /* VBoxMPIOCTL.cpp(80): warning C4457: declaration of 'pRequestedAddress' hides function parameter (caused by VBOXMPIOCTL_HIDE) */ 39 # pragma warning(disable:4457 ) 40 # endif 41 #endif 42 36 43 /* Called for IOCTL_VIDEO_RESET_DEVICE. 37 44 * Reset device to a state it comes at system boot time. … … 88 95 pMapInfo->FrameBufferBase = (PUCHAR)pMapInfo->VideoRamBase; 89 96 pMapInfo->FrameBufferLength = 90 VBoxMPXpdmCurrentVideoMode(pExt)->VisScreenHeight *97 VBoxMPXpdmCurrentVideoMode(pExt)->VisScreenHeight * 91 98 VBoxMPXpdmCurrentVideoMode(pExt)->ScreenStride; 92 99
Note:
See TracChangeset
for help on using the changeset viewer.