Changeset 27055 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm
- Timestamp:
- Mar 4, 2010 7:06:28 PM (15 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp
r27006 r27055 1084 1084 PDEVICE_EXTENSION pContext = (PDEVICE_EXTENSION)hAdapter; 1085 1085 1086 AssertBreakpoint(); 1087 1086 1088 switch (pQueryAdapterInfo->Type) 1087 1089 { … … 1186 1188 PDEVICE_EXTENSION pContext = (PDEVICE_EXTENSION)hAdapter; 1187 1189 1190 AssertBreakpoint(); 1191 1188 1192 PVBOXWDDM_DEVICE pDevice = (PVBOXWDDM_DEVICE)vboxWddmMemAllocZero(sizeof (VBOXWDDM_DEVICE)); 1189 1193 pCreateDevice->hDevice = pDevice; … … 1197 1201 1198 1202 pDevice->pAdapter = pContext; 1203 pDevice->hDevice = pCreateDevice->hDevice; 1199 1204 1200 1205 pCreateDevice->hDevice = pDevice; … … 1238 1243 pAllocation->enmType = VBOXWDDM_ALLOC_TYPE_STD_SHAREDPRIMARYSURFACE; 1239 1244 pAllocation->u.SurfInfo = pAllocInfo->u.SurfInfo; 1240 PVBOXWDDM_ALLOCATION_SHAREDPRIMARYSURFACE pAlloc = VBOXWDDM_ALLOCATION_BODY(pAlloc Info, VBOXWDDM_ALLOCATION_SHAREDPRIMARYSURFACE);1245 PVBOXWDDM_ALLOCATION_SHAREDPRIMARYSURFACE pAlloc = VBOXWDDM_ALLOCATION_BODY(pAllocation, VBOXWDDM_ALLOCATION_SHAREDPRIMARYSURFACE); 1241 1246 PVBOXWDDM_ALLOCINFO_SHAREDPRIMARYSURFACE pAllocI = VBOXWDDM_ALLOCINFO_BODY(pAllocInfo, VBOXWDDM_ALLOCINFO_SHAREDPRIMARYSURFACE); 1242 1247 pAlloc->RefreshRate = pAllocI->RefreshRate; … … 1287 1292 if (pAllocationInfo->PrivateDriverDataSize >= VBOXWDDM_ALLOCINFO_HEADSIZE()) 1288 1293 { 1289 PVBOXWDDM_ALLOCATION pAllocation = (PVBOXWDDM_ALLOCATION)vboxWddmMemAllocZero(VBOXWDDM_ALLOC INFO_HEADSIZE());1294 PVBOXWDDM_ALLOCATION pAllocation = (PVBOXWDDM_ALLOCATION)vboxWddmMemAllocZero(VBOXWDDM_ALLOCATION_HEADSIZE()); 1290 1295 Assert(pAllocation); 1291 1296 if (pAllocation) … … 1348 1353 dfprintf(("==> "__FUNCTION__ ", context(0x%x)\n", hAdapter)); 1349 1354 1355 AssertBreakpoint(); 1356 1350 1357 NTSTATUS Status = STATUS_SUCCESS; 1351 1358 … … 1392 1399 } 1393 1400 1394 1401 /** 1402 * DxgkDdiDescribeAllocation 1403 */ 1395 1404 NTSTATUS 1396 1405 APIENTRY … … 1402 1411 1403 1412 AssertBreakpoint(); 1404 /* @todo: fixme: implement */ 1413 PVBOXWDDM_ALLOCATION pAllocation = (PVBOXWDDM_ALLOCATION)pDescribeAllocation->hAllocation; 1414 pDescribeAllocation->Width = pAllocation->u.SurfInfo.width; 1415 pDescribeAllocation->Height = pAllocation->u.SurfInfo.height; 1416 pDescribeAllocation->Format = pAllocation->u.SurfInfo.format; 1417 memset (&pDescribeAllocation->MultisampleMethod, 0, sizeof (pDescribeAllocation->MultisampleMethod)); 1418 pDescribeAllocation->RefreshRate.Numerator = 60000; 1419 pDescribeAllocation->RefreshRate.Denominator = 1000; 1420 pDescribeAllocation->PrivateDriverFormatAttribute = 0; 1405 1421 1406 1422 dfprintf(("<== "__FUNCTION__ ", hAdapter(0x%x)\n", hAdapter)); … … 1422 1438 1423 1439 dfprintf(("==> "__FUNCTION__ ", context(0x%x)\n", hAdapter)); 1440 1441 AssertBreakpoint(); 1424 1442 1425 1443 NTSTATUS Status = STATUS_SUCCESS; … … 1660 1678 PAGED_CODE(); 1661 1679 1680 AssertBreakpoint(); 1681 1662 1682 NTSTATUS Status = STATUS_SUCCESS; 1663 1683 … … 1812 1832 1813 1833 dfprintf(("==> "__FUNCTION__ ", context(0x%x)\n", hAdapter)); 1834 1835 AssertBreakpoint(); 1814 1836 1815 1837 PDEVICE_EXTENSION pContext = (PDEVICE_EXTENSION)hAdapter; … … 2478 2500 dfprintf(("==> "__FUNCTION__ ", hDevice(0x%x)\n", hDevice)); 2479 2501 2502 AssertBreakpoint(); 2503 2480 2504 NTSTATUS Status = STATUS_SUCCESS; 2481 2505 … … 2770 2794 dfprintf(("==> "__FUNCTION__ ", hDevice(0x%x)\n", hDevice)); 2771 2795 2796 AssertBreakpoint(); 2797 2772 2798 NTSTATUS Status = STATUS_SUCCESS; 2773 2799 PVBOXWDDM_DEVICE pDevice = (PVBOXWDDM_DEVICE)hDevice; -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.h
r26794 r27055 102 102 { 103 103 struct _DEVICE_EXTENSION * pAdapter; /* Adapder info */ 104 HANDLE hDevice; /* handle passed to CreateDevice */ 104 105 VBOXWDDM_DEVICE_TYPE enmType; /* device creation flags passed to DxgkDdiCreateDevice, not sure we need it */ 105 106 } VBOXWDDM_DEVICE, *PVBOXWDDM_DEVICE;
Note:
See TracChangeset
for help on using the changeset viewer.