Changeset 84382 in vbox for trunk/src/VBox
- Timestamp:
- May 20, 2020 12:14:39 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp
r84325 r84382 104 104 static DWORD vboxDispIfResizeStartedWDDMOp(VBOXDISPIF_OP *pOp); 105 105 106 static void vboxDispIfWddmDcLogRel(VBOXDISPIF_WDDM_DISPCFG const *pCfg, UINT fFlags) 107 { 108 LogRel(("Display config: Flags = 0x%08X\n", fFlags)); 109 110 LogRel(("PATH_INFO[%d]:\n", pCfg->cPathInfoArray)); 111 for (uint32_t i = 0; i < pCfg->cPathInfoArray; ++i) 112 { 113 DISPLAYCONFIG_PATH_INFO *p = &pCfg->pPathInfoArray[i]; 114 115 LogRel(("%d: flags 0x%08x\n", i, p->flags)); 116 117 LogRel((" sourceInfo: adapterId 0x%08x:%08x, id %u, modeIdx %d, statusFlags 0x%08x\n", 118 p->sourceInfo.adapterId.HighPart, p->sourceInfo.adapterId.LowPart, 119 p->sourceInfo.id, p->sourceInfo.modeInfoIdx, p->sourceInfo.statusFlags)); 120 121 LogRel((" targetInfo: adapterId 0x%08x:%08x, id %u, modeIdx %d,\n" 122 " ot %d, r %d, s %d, rr %d/%d, so %d, ta %d, statusFlags 0x%08x\n", 123 p->targetInfo.adapterId.HighPart, p->targetInfo.adapterId.LowPart, 124 p->targetInfo.id, p->targetInfo.modeInfoIdx, 125 p->targetInfo.outputTechnology, 126 p->targetInfo.rotation, 127 p->targetInfo.scaling, 128 p->targetInfo.refreshRate.Numerator, p->targetInfo.refreshRate.Denominator, 129 p->targetInfo.scanLineOrdering, 130 p->targetInfo.targetAvailable, 131 p->targetInfo.statusFlags 132 )); 133 } 134 135 LogRel(("MODE_INFO[%d]:\n", pCfg->cModeInfoArray)); 136 for (uint32_t i = 0; i < pCfg->cModeInfoArray; ++i) 137 { 138 DISPLAYCONFIG_MODE_INFO *p = &pCfg->pModeInfoArray[i]; 139 140 LogRel(("%d: adapterId 0x%08x:%08x, id %u\n", 141 i, p->adapterId.HighPart, p->adapterId.LowPart, p->id)); 142 143 if (p->infoType == DISPLAYCONFIG_MODE_INFO_TYPE_SOURCE) 144 { 145 LogRel((" src %ux%u, fmt %d, @%dx%d\n", 146 p->sourceMode.width, p->sourceMode.height, p->sourceMode.pixelFormat, 147 p->sourceMode.position.x, p->sourceMode.position.y)); 148 } 149 else if (p->infoType == DISPLAYCONFIG_MODE_INFO_TYPE_TARGET) 150 { 151 LogRel((" tgt pr 0x%RX64, hSyncFreq %d/%d, vSyncFreq %d/%d, active %ux%u, total %ux%u, std %d, so %d\n", 152 p->targetMode.targetVideoSignalInfo.pixelRate, 153 p->targetMode.targetVideoSignalInfo.hSyncFreq.Numerator, p->targetMode.targetVideoSignalInfo.hSyncFreq.Denominator, 154 p->targetMode.targetVideoSignalInfo.vSyncFreq.Numerator, p->targetMode.targetVideoSignalInfo.vSyncFreq.Denominator, 155 p->targetMode.targetVideoSignalInfo.activeSize.cx, p->targetMode.targetVideoSignalInfo.activeSize.cy, 156 p->targetMode.targetVideoSignalInfo.totalSize.cx, p->targetMode.targetVideoSignalInfo.totalSize.cy, 157 p->targetMode.targetVideoSignalInfo.videoStandard, 158 p->targetMode.targetVideoSignalInfo.scanLineOrdering)); 159 } 160 else 161 { 162 LogRel((" Invalid infoType %u(0x%08x)\n", p->infoType, p->infoType)); 163 } 164 } 165 } 106 166 107 167 static DWORD vboxDispIfWddmDcCreate(VBOXDISPIF_WDDM_DISPCFG *pCfg, UINT32 fFlags) … … 1873 1933 { 1874 1934 WARN(("VBoxTray:(WDDM) pfnSetDisplayConfig Failed to VALIDATE winEr %d.\n", winEr)); 1935 vboxDispIfWddmDcLogRel(&DispCfg, fSetFlags); 1875 1936 fSetFlags |= SDC_ALLOW_CHANGES; 1876 1937 }
Note:
See TracChangeset
for help on using the changeset viewer.