Changeset 33572 in vbox for trunk/src/VBox
- Timestamp:
- Oct 28, 2010 4:39:36 PM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r33540 r33572 5394 5394 LogFlow(("vgaR3Destruct:\n")); 5395 5395 5396 #ifdef VBOX_WITH_VDMA 5397 vboxVDMADestruct(pThis->pVdma); 5398 #endif 5399 5396 5400 /* 5397 5401 * Free MM heap pointers. -
trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp
r33306 r33572 26 26 #include "HGSMI/HGSMIHostHlp.h" 27 27 28 #ifdef VBOX_VDMA_WITH_WORKERTHREAD 28 29 typedef enum 29 30 { … … 76 77 VBOXVDMAPIPE_CMD aCmds[1]; 77 78 } VBOXVDMAPIPE_CMD_POOL, *PVBOXVDMAPIPE_CMD_POOL; 79 #endif 78 80 79 81 typedef struct VBOXVDMAHOST 80 82 { 83 PHGSMIINSTANCE pHgsmi; 84 PVGASTATE pVGAState; 85 bool bEnabled; 86 #ifdef VBOX_VDMA_WITH_WORKERTHREAD 81 87 VBOXVDMAPIPE Pipe; 82 88 HGSMILIST PendingList; 83 89 RTTHREAD hWorkerThread; 84 PHGSMIINSTANCE pHgsmi;85 PVGASTATE pVGAState;86 bool bEnabled;87 90 VBOXVDMAPIPE_CMD_POOL CmdPool; 91 #endif 88 92 } VBOXVDMAHOST, *PVBOXVDMAHOST; 89 93 … … 682 686 } 683 687 688 #ifdef VBOX_VDMA_WITH_WORKERTHREAD 689 684 690 int vboxVDMAPipeConstruct(PVBOXVDMAPIPE pPipe) 685 691 { … … 909 915 return VINF_SUCCESS; 910 916 } 917 #endif 911 918 912 919 static void vboxVDMACommandProcess(PVBOXVDMAHOST pVdma, PVBOXVDMACBUF_DR pCmd) … … 977 984 } 978 985 986 #ifdef VBOX_VDMA_WITH_WORKERTHREAD 979 987 typedef struct 980 988 { … … 1055 1063 return rc; 1056 1064 } 1065 #endif 1057 1066 1058 1067 int vboxVDMAConstruct(PVGASTATE pVGAState, struct VBOXVDMAHOST **ppVdma, uint32_t cPipeElements) 1059 1068 { 1060 1069 int rc; 1070 #ifdef VBOX_VDMA_WITH_WORKERTHREAD 1061 1071 PVBOXVDMAHOST pVdma = (PVBOXVDMAHOST)RTMemAllocZ (RT_OFFSETOF(VBOXVDMAHOST, CmdPool.aCmds[cPipeElements])); 1072 #else 1073 PVBOXVDMAHOST pVdma = (PVBOXVDMAHOST)RTMemAllocZ (sizeof (*pVdma)); 1074 #endif 1062 1075 Assert(pVdma); 1063 1076 if (pVdma) 1064 1077 { 1065 hgsmiListInit(&pVdma->PendingList);1066 1078 pVdma->pHgsmi = pVGAState->pHGSMI; 1067 1079 pVdma->pVGAState = pVGAState; 1080 #ifdef VBOX_VDMA_WITH_WORKERTHREAD 1081 hgsmiListInit(&pVdma->PendingList); 1068 1082 rc = vboxVDMAPipeConstruct(&pVdma->Pipe); 1069 1083 AssertRC(rc); … … 1080 1094 hgsmiListAppend(&pVdma->CmdPool.List, &pVdma->CmdPool.aCmds[i].Entry); 1081 1095 } 1082 # if 0 //def VBOX_WITH_CRHGSMI1096 # if 0 //def VBOX_WITH_CRHGSMI 1083 1097 int tmpRc = vboxVDMACrCtlHgsmiSetup(pVdma); 1084 # ifdef DEBUG_misha1098 # ifdef DEBUG_misha 1085 1099 AssertRC(tmpRc); 1100 # endif 1086 1101 # endif 1087 1102 #endif 1088 1103 *ppVdma = pVdma; 1089 1104 return VINF_SUCCESS; 1105 #ifdef VBOX_VDMA_WITH_WORKERTHREAD 1090 1106 } 1091 1107 … … 1095 1111 1096 1112 RTMemFree(pVdma); 1113 #endif 1097 1114 } 1098 1115 else … … 1102 1119 } 1103 1120 1104 int vboxVDMADestruct(struct VBOXVDMAHOST **pVdma) 1105 { 1121 int vboxVDMADestruct(struct VBOXVDMAHOST *pVdma) 1122 { 1123 #ifdef VBOX_VDMA_WITH_WORKERTHREAD 1124 /* @todo: implement*/ 1106 1125 AssertBreakpoint(); 1126 #endif 1127 RTMemFree(pVdma); 1107 1128 return VINF_SUCCESS; 1108 1129 } 1109 1130 1131 #ifdef VBOX_VDMA_WITH_WORKERTHREAD 1110 1132 typedef struct 1111 1133 { … … 1135 1157 return false; 1136 1158 } 1159 #endif 1137 1160 1138 1161 void vboxVDMAControl(struct VBOXVDMAHOST *pVdma, PVBOXVDMA_CTL pCmd) … … 1205 1228 #endif 1206 1229 1230 int rc = VERR_NOT_IMPLEMENTED; 1231 1232 #ifdef VBOX_VDMA_WITH_WORKERTHREAD 1233 1207 1234 #ifdef DEBUG_misha 1208 1235 Assert(0); … … 1214 1241 Context.Cmd.u.pDr = pCmd; 1215 1242 1216 intrc = vboxVDMAPipeModifyClient(&pVdma->Pipe, vboxVDMACommandSubmitCb, &Context);1243 rc = vboxVDMAPipeModifyClient(&pVdma->Pipe, vboxVDMACommandSubmitCb, &Context); 1217 1244 AssertRC(rc); 1218 1245 if (RT_SUCCESS(rc)) … … 1226 1253 rc = VERR_OUT_OF_RESOURCES; 1227 1254 } 1228 1255 #endif 1229 1256 /* failure */ 1230 1257 Assert(RT_FAILURE(rc)); -
trunk/src/VBox/GuestHost/OpenGL/Makefile.kmk
r33561 r33572 89 89 $(VBOX_LIB_IPRT_GUEST_R3_SHARED) 90 90 ifdef VBOX_WITH_CRHGSMI 91 VBoxOGLcrutil_DEFS += VBOX_WITH_CRHGSMI92 VBoxOGLcrutil_LIBS += $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB)91 VBoxOGLcrutil_DEFS.win.x86 += VBOX_WITH_CRHGSMI 92 VBoxOGLcrutil_LIBS.win.x86 += $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB) 93 93 endif 94 94 VBoxOGLcrutil_CLEAN = \
Note:
See TracChangeset
for help on using the changeset viewer.