Changeset 52260 in vbox for trunk/src/VBox/GuestHost/OpenGL
- Timestamp:
- Aug 4, 2014 11:59:46 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 95357
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/VBox-4.3 merged: 95338
- Property svn:mergeinfo changed
-
trunk/src/VBox
- Property svn:mergeinfo changed
/branches/VBox-4.3/src/VBox merged: 95338
- Property svn:mergeinfo changed
-
trunk/src/VBox/GuestHost/OpenGL/include/cr_pack.h
r51315 r52260 252 252 } while (0) 253 253 254 #define CR_CMDBLOCK_IS_STARTED( pc, op ) CRPACKBLOCKSTATE_IS_OP_STARTED((pc)->u32CmdBlockState, op) 254 255 255 256 #define CR_CMDBLOCK_BEGIN( pc, op ) \ … … 257 258 CR_LOCK_PACKER_CONTEXT(pc); \ 258 259 if (!cr_packer_cmd_blocks_enabled) break; \ 259 if (!CRPACKBLOCKSTATE_IS_STARTED( pc->u32CmdBlockState)) { \260 if (!CRPACKBLOCKSTATE_IS_STARTED((pc)->u32CmdBlockState)) { \ 260 261 THREADASSERT( pc ); \ 261 CRASSERT( pc->currentBuffer ); \262 if (!crPackBufferIsEmpty(& pc->buffer)) { \263 if ((* pc->buffer.opcode_start) != CR_NOP_OPCODE) { \264 pc->Flush( pc->flush_arg ); \265 Assert(crPackCanHoldOpcode( pc, 1, 4 ) ); \266 CR_CMDBLOCK_OP( pc, CR_CMDBLOCKBEGIN_OPCODE ); \262 CRASSERT( (pc)->currentBuffer ); \ 263 if (!crPackBufferIsEmpty(&(pc)->buffer)) { \ 264 if ((*(pc)->buffer.opcode_start) != CR_NOP_OPCODE) { \ 265 (pc)->Flush( (pc)->flush_arg ); \ 266 Assert(crPackCanHoldOpcode( (pc), 1, 4 ) ); \ 267 CR_CMDBLOCK_OP( (pc), CR_CMDBLOCKBEGIN_OPCODE ); \ 267 268 } \ 268 269 else { \ 269 (* pc->buffer.opcode_start) = CR_CMDBLOCKBEGIN_OPCODE; \270 (*(pc)->buffer.opcode_start) = CR_CMDBLOCKBEGIN_OPCODE; \ 270 271 } \ 271 272 } \ 272 273 else { \ 273 Assert(crPackCanHoldOpcode( pc, 1, 4 ) ); \274 CR_CMDBLOCK_OP( pc, CR_CMDBLOCKBEGIN_OPCODE ); \274 Assert(crPackCanHoldOpcode( (pc), 1, 4 ) ); \ 275 CR_CMDBLOCK_OP( (pc), CR_CMDBLOCKBEGIN_OPCODE ); \ 275 276 } \ 276 277 } \ 277 CRPACKBLOCKSTATE_OP_START(pc->u32CmdBlockState, op); \ 278 Assert(!CRPACKBLOCKSTATE_IS_OP_STARTED((pc)->u32CmdBlockState, op)); \ 279 CRPACKBLOCKSTATE_OP_START((pc)->u32CmdBlockState, op); \ 280 Assert(CRPACKBLOCKSTATE_IS_OP_STARTED((pc)->u32CmdBlockState, op)); \ 278 281 } while (0) 279 282 … … 281 284 do { \ 282 285 if (!cr_packer_cmd_blocks_enabled) break; \ 283 CRPACKBLOCKSTATE_OP_STOP(pc->u32CmdBlockState, op); \ 284 if (!CRPACKBLOCKSTATE_IS_STARTED(pc->u32CmdBlockState)) { \ 286 Assert(CRPACKBLOCKSTATE_IS_OP_STARTED((pc)->u32CmdBlockState, op)); \ 287 CRPACKBLOCKSTATE_OP_STOP((pc)->u32CmdBlockState, op); \ 288 Assert(!CRPACKBLOCKSTATE_IS_OP_STARTED((pc)->u32CmdBlockState, op)); \ 289 if (!CRPACKBLOCKSTATE_IS_STARTED((pc)->u32CmdBlockState)) { \ 285 290 THREADASSERT( pc ); \ 286 CRASSERT( pc->currentBuffer );\287 if (!crPackBufferIsEmpty(& pc->buffer)) {\288 if ((* pc->buffer.opcode_start) != CR_CMDBLOCKBEGIN_OPCODE) {\291 CRASSERT( (pc)->currentBuffer ); \ 292 if (!crPackBufferIsEmpty(&(pc)->buffer)) { \ 293 if ((*(pc)->buffer.opcode_start) != CR_CMDBLOCKBEGIN_OPCODE) {\ 289 294 if ( !crPackCanHoldOpcode( pc, 1, 4 ) ) { \ 290 pc->Flush( pc->flush_arg );\295 (pc)->Flush( (pc)->flush_arg ); \ 291 296 Assert(crPackCanHoldOpcode( pc, 1, 4 ) ); \ 292 297 } \ 293 298 CR_CMDBLOCK_OP( pc, CR_CMDBLOCKEND_OPCODE ); \ 294 pc->Flush( pc->flush_arg );\299 (pc)->Flush( (pc)->flush_arg ); \ 295 300 } \ 296 301 else { \ 297 (* pc->buffer.opcode_start) = CR_NOP_OPCODE;\302 (*(pc)->buffer.opcode_start) = CR_NOP_OPCODE; \ 298 303 } \ 299 304 } \ … … 301 306 Assert(crPackCanHoldOpcode( pc, 1, 4 ) ); \ 302 307 CR_CMDBLOCK_OP( pc, CR_CMDBLOCKEND_OPCODE ); \ 303 pc->Flush( pc->flush_arg );\308 (pc)->Flush( pc->flush_arg ); \ 304 309 } \ 305 310 } \ -
trunk/src/VBox/GuestHost/OpenGL/include/cr_server.h
r51670 r52260 356 356 357 357 GLboolean fCrCmdEnabled; 358 359 GLboolean fProcessingPendedCommands; 358 360 359 361 int numClients; -
trunk/src/VBox/GuestHost/OpenGL/packer/pack_beginend.c
r50973 r52260 13 13 unsigned char *data_ptr; 14 14 (void) pc; 15 16 if (CR_CMDBLOCK_IS_STARTED(pc, CRPACKBLOCKSTATE_OP_BEGIN)) 17 { 18 WARN(("recursive begin?")); 19 return; 20 } 15 21 16 22 CR_CMDBLOCK_BEGIN( pc, CRPACKBLOCKSTATE_OP_BEGIN ); -
trunk/src/VBox/GuestHost/OpenGL/packer/pack_lists.c
r50973 r52260 64 64 unsigned char *data_ptr; 65 65 (void) pc; 66 67 if (CR_CMDBLOCK_IS_STARTED(pc, CRPACKBLOCKSTATE_OP_NEWLIST)) 68 { 69 WARN(("recursive NewList?")); 70 return; 71 } 72 66 73 CR_CMDBLOCK_BEGIN( pc, CRPACKBLOCKSTATE_OP_NEWLIST ); 67 74 CR_GET_BUFFERED_POINTER_NO_BEGINEND_FLUSH( pc, 16, GL_FALSE ); -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_lists.c
r45910 r52260 174 174 CRStateBits *sb = GetCurrentBits(); 175 175 CRbitvalue *bitID=g->bitid, *negbitID=g->neg_bitid; 176 177 CRASSERT(g_bVBoxEnableDiffOnMakeCurrent); 176 178 177 179 if (CHECKDIRTY(sb->buffer.dirty, negbitID))
Note:
See TracChangeset
for help on using the changeset viewer.