Changeset 38374 in vbox for trunk/src/VBox/Additions/common/crOpenGL/pack
- Timestamp:
- Aug 9, 2011 11:50:44 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 73401
- Location:
- trunk/src/VBox/Additions/common/crOpenGL/pack
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_context.c
r38143 r38374 213 213 } 214 214 215 #define PACK_FORCED_SYNC216 217 215 void PACKSPU_APIENTRY packspu_MakeCurrent( GLint window, GLint nativeWindow, GLint ctx ) 218 216 { … … 240 238 if (newCtx->currentThread && newCtx->currentThread != thread) 241 239 { 242 int writeback = 1;243 240 crLockMutex(&_PackMutex); 244 241 /* do a flush for the previusly assigned thread … … 249 246 && newCtx->currentThread->packer && newCtx->currentThread->packer->currentBuffer) 250 247 { 251 #ifdef PACK_FORCED_SYNC252 CRPackContext *pc = newCtx->currentThread->packer;253 unsigned char *data_ptr;254 255 CR_GET_BUFFERED_POINTER( pc, 16 );256 WRITE_DATA( 0, GLint, 16 );257 WRITE_DATA( 4, GLenum, CR_WRITEBACK_EXTEND_OPCODE );258 WRITE_NETWORK_POINTER( 8, (void *) &writeback );259 WRITE_OPCODE( pc, CR_EXTEND_OPCODE );260 CR_UNLOCK_PACKER_CONTEXT(pc);261 #endif262 248 packspuFlush((void *) newCtx->currentThread); 263 264 #ifdef PACK_FORCED_SYNC265 while (writeback)266 crNetRecv();267 #endif268 249 } 269 250 crUnlockMutex(&_PackMutex); -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_misc.c
r38143 r38374 104 104 } 105 105 106 #define PACK_FORCED_SYNC107 108 106 void PACKSPU_APIENTRY packspu_Flush( void ) 109 107 { 110 108 GET_THREAD(thread); 111 int writeback =1;109 int writeback=1; 112 110 int found=0; 113 111 … … 136 134 && pack_spu.thread[i].packer && pack_spu.thread[i].packer->currentBuffer) 137 135 { 138 #ifdef PACK_FORCED_SYNC139 CRPackContext *pc = pack_spu.thread[i].packer;140 unsigned char *data_ptr;141 142 CR_GET_BUFFERED_POINTER( pc, 16 );143 WRITE_DATA( 0, GLint, 16 );144 WRITE_DATA( 4, GLenum, CR_WRITEBACK_EXTEND_OPCODE );145 WRITE_NETWORK_POINTER( 8, (void *) &writeback );146 WRITE_OPCODE( pc, CR_EXTEND_OPCODE );147 CR_UNLOCK_PACKER_CONTEXT(pc);148 #endif149 136 packspuFlush((void *) &pack_spu.thread[i]); 150 137 … … 154 141 } 155 142 156 #ifdef PACK_FORCED_SYNC157 while (writeback)158 crNetRecv();159 #endif160 143 } 161 144 } … … 169 152 } 170 153 171 #ifdef PACK_FORCED_SYNC172 writeback = 1;173 crPackWriteback(&writeback);174 #endif175 154 packspuFlush((void *) thread); 176 155 177 #ifdef PACK_FORCED_SYNC178 while (writeback)179 crNetRecv();180 #endif181 156 crUnlockMutex(&_PackMutex); 182 157 }
Note:
See TracChangeset
for help on using the changeset viewer.