Changeset 52350 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
- Timestamp:
- Aug 11, 2014 6:30:55 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 95478
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/VBox-4.3 merged: 95475
- Property svn:mergeinfo changed
-
trunk/src/VBox
- Property svn:mergeinfo changed
/branches/VBox-4.3/src/VBox merged: 95475
- Property svn:mergeinfo changed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r52348 r52350 449 449 } 450 450 451 if (!pSource->AllocData.Addr.SegmentId )451 if (!pSource->AllocData.Addr.SegmentId && pSource->AllocData.SurfDesc.width) 452 452 return false; 453 453 … … 5141 5141 LOGF(("ENTER, context(0x%x)", hAdapter)); 5142 5142 5143 NTSTATUS Status = STATUS_SUCCESS;5144 5143 PVBOXMP_DEVEXT pDevExt = (PVBOXMP_DEVEXT)hAdapter; 5145 Assert((UINT)VBoxCommonFromDeviceExt(pDevExt)->cDisplays > pSetVidPnSourceAddress->VidPnSourceId);5146 5147 PVBOXWDDM_SOURCE pSource = &pDevExt->aSources[pSetVidPnSourceAddress->VidPnSourceId];5148 POINT Pos;5149 Status= vboxWddmDisplaySettingsQueryPos(pDevExt, pSetVidPnSourceAddress->VidPnSourceId, &Pos);5150 //Assert(Status == STATUS_SUCCESS);5151 if (NT_SUCCESS(Status))5152 {5153 if (memcmp(&pSource->VScreenPos, &Pos, sizeof (Pos)))5154 {5155 pSource->VScreenPos = Pos;5156 pSource->u8SyncState &= ~VBOXWDDM_HGSYNC_F_SYNCED_DIMENSIONS;5157 }5158 }5159 5160 Status = STATUS_SUCCESS;5161 5162 5144 if ((UINT)VBoxCommonFromDeviceExt(pDevExt)->cDisplays <= pSetVidPnSourceAddress->VidPnSourceId) 5163 5145 { … … 5166 5148 } 5167 5149 5150 vboxWddmDisplaySettingsCheckPos(pDevExt, pSetVidPnSourceAddress->VidPnSourceId); 5151 5152 NTSTATUS Status = STATUS_SUCCESS; 5153 PVBOXWDDM_SOURCE pSource = &pDevExt->aSources[pSetVidPnSourceAddress->VidPnSourceId]; 5168 5154 PVBOXWDDM_ALLOCATION pAllocation; 5169 5155 Assert(pSetVidPnSourceAddress->hAllocation); … … 5225 5211 LOGF(("ENTER, context(0x%x)", hAdapter)); 5226 5212 5227 NTSTATUS Status = STATUS_SUCCESS;5228 5213 PVBOXMP_DEVEXT pDevExt = (PVBOXMP_DEVEXT)hAdapter; 5229 Assert((UINT)VBoxCommonFromDeviceExt(pDevExt)->cDisplays > pSetVidPnSourceVisibility->VidPnSourceId);5230 5231 PVBOXWDDM_SOURCE pSource = &pDevExt->aSources[pSetVidPnSourceVisibility->VidPnSourceId];5232 POINT Pos;5233 Status= vboxWddmDisplaySettingsQueryPos(pDevExt, pSetVidPnSourceVisibility->VidPnSourceId, &Pos);5234 //Assert(Status == STATUS_SUCCESS);5235 if (NT_SUCCESS(Status))5236 {5237 if (memcmp(&pSource->VScreenPos, &Pos, sizeof (Pos)))5238 {5239 pSource->VScreenPos = Pos;5240 pSource->u8SyncState &= ~VBOXWDDM_HGSYNC_F_SYNCED_DIMENSIONS;5241 }5242 }5243 Status = STATUS_SUCCESS;5244 5214 5245 5215 if ((UINT)VBoxCommonFromDeviceExt(pDevExt)->cDisplays <= pSetVidPnSourceVisibility->VidPnSourceId) … … 5249 5219 } 5250 5220 5221 vboxWddmDisplaySettingsCheckPos(pDevExt, pSetVidPnSourceVisibility->VidPnSourceId); 5222 5223 NTSTATUS Status = STATUS_SUCCESS; 5224 PVBOXWDDM_SOURCE pSource = &pDevExt->aSources[pSetVidPnSourceVisibility->VidPnSourceId]; 5251 5225 PVBOXWDDM_ALLOCATION pAllocation = pSource->pPrimaryAllocation; 5252 5226 if (pAllocation) … … 6749 6723 for (int i = 0; i < VBoxCommonFromDeviceExt(pDevExt)->cDisplays; ++i) 6750 6724 { 6751 pDevExt->aSources[i].u8SyncState = 0; 6752 NTSTATUS tmpStatus= vboxWddmDisplaySettingsQueryPos(pDevExt, i, &pDevExt->aSources[i].VScreenPos); 6753 //Assert(tmpStatus == STATUS_SUCCESS); 6754 } 6725 vboxWddmDisplaySettingsCheckPos(pDevExt, i); 6726 } 6727 6755 6728 #ifdef VBOX_WITH_CROGL 6756 6729 if (!VBOXWDDM_IS_DISPLAYONLY() && pDevExt->f3DEnabled)
Note:
See TracChangeset
for help on using the changeset viewer.