Changeset 32889 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoVdma.cpp
- Timestamp:
- Oct 4, 2010 11:14:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoVdma.cpp
r32877 r32889 1002 1002 static int vboxWddmVdmaSubmitHgsmi(struct _DEVICE_EXTENSION* pDevExt, PVBOXVDMAINFO pInfo, HGSMIOFFSET offDr) 1003 1003 { 1004 VBoxHGSMIGuestWrite( pDevExt, offDr);1004 VBoxHGSMIGuestWrite(hgsmiFromDeviceExt(pDevExt), offDr); 1005 1005 return VINF_SUCCESS; 1006 1006 } … … 1012 1012 int rc = VINF_SUCCESS; 1013 1013 1014 PVBOXVDMA_CTL pCmd = (PVBOXVDMA_CTL)VBoxSHGSMICommandAlloc(& pDevExt->u.primary.hgsmiAdapterHeap, sizeof (VBOXVDMA_CTL), HGSMI_CH_VBVA, VBVA_VDMA_CTL);1014 PVBOXVDMA_CTL pCmd = (PVBOXVDMA_CTL)VBoxSHGSMICommandAlloc(&hgsmiFromDeviceExt(pDevExt)->hgsmiAdapterHeap, sizeof (VBOXVDMA_CTL), HGSMI_CH_VBVA, VBVA_VDMA_CTL); 1015 1015 if (pCmd) 1016 1016 { … … 1019 1019 pCmd->i32Result = VERR_NOT_SUPPORTED; 1020 1020 1021 const VBOXSHGSMIHEADER* pHdr = VBoxSHGSMICommandPrepSynch(& pDevExt->u.primary.hgsmiAdapterHeap, pCmd);1021 const VBOXSHGSMIHEADER* pHdr = VBoxSHGSMICommandPrepSynch(&hgsmiFromDeviceExt(pDevExt)->hgsmiAdapterHeap, pCmd); 1022 1022 Assert(pHdr); 1023 1023 if (pHdr) … … 1025 1025 do 1026 1026 { 1027 HGSMIOFFSET offCmd = VBoxSHGSMICommandOffset(& pDevExt->u.primary.hgsmiAdapterHeap, pHdr);1027 HGSMIOFFSET offCmd = VBoxSHGSMICommandOffset(&hgsmiFromDeviceExt(pDevExt)->hgsmiAdapterHeap, pHdr); 1028 1028 Assert(offCmd != HGSMIOFFSET_VOID); 1029 1029 if (offCmd != HGSMIOFFSET_VOID) … … 1033 1033 if (RT_SUCCESS(rc)) 1034 1034 { 1035 rc = VBoxSHGSMICommandDoneSynch(& pDevExt->u.primary.hgsmiAdapterHeap, pHdr);1035 rc = VBoxSHGSMICommandDoneSynch(&hgsmiFromDeviceExt(pDevExt)->hgsmiAdapterHeap, pHdr); 1036 1036 AssertRC(rc); 1037 1037 if (RT_SUCCESS(rc)) … … 1046 1046 rc = VERR_INVALID_PARAMETER; 1047 1047 /* fail to submit, cancel it */ 1048 VBoxSHGSMICommandCancelSynch(& pDevExt->u.primary.hgsmiAdapterHeap, pHdr);1048 VBoxSHGSMICommandCancelSynch(&hgsmiFromDeviceExt(pDevExt)->hgsmiAdapterHeap, pHdr); 1049 1049 } while (0); 1050 1050 } 1051 1051 1052 VBoxSHGSMICommandFree (& pDevExt->u.primary.hgsmiAdapterHeap, pCmd);1052 VBoxSHGSMICommandFree (&hgsmiFromDeviceExt(pDevExt)->hgsmiAdapterHeap, pCmd); 1053 1053 } 1054 1054 else … … 1247 1247 } 1248 1248 1249 vboxVdmaDdiCmdCompletedIrq(pDevExt, &pDevExt->DdiCmdQueue, VBOXVDMADDI_CMD_FROM_BUF_DR(pDr), enmComplType); 1249 if (vboxVdmaDdiCmdCompletedIrq(pDevExt, &pDevExt->DdiCmdQueue, VBOXVDMADDI_CMD_FROM_BUF_DR(pDr), enmComplType)) 1250 { 1251 pDevExt->bNotifyDxDpc = TRUE; 1252 } 1250 1253 1251 1254 /* inform SHGSMI we DO NOT want to be called at DPC later */
Note:
See TracChangeset
for help on using the changeset viewer.