Changeset 42028 in vbox for trunk/src/VBox/GuestHost/OpenGL/packer/pack_buffer.c
- Timestamp:
- Jul 5, 2012 3:22:55 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/packer/pack_buffer.c
r41109 r42028 258 258 259 259 260 int crPackCanHoldBuffer( const CRPackBuffer *src )260 int crPackCanHoldBuffer( CR_PACKER_CONTEXT_ARGDECL const CRPackBuffer *src ) 261 261 { 262 262 const int num_data = crPackNumData(src); … … 271 271 272 272 273 int crPackCanHoldBoundedBuffer( const CRPackBuffer *src )273 int crPackCanHoldBoundedBuffer( CR_PACKER_CONTEXT_ARGDECL const CRPackBuffer *src ) 274 274 { 275 275 const int len_aligned = (src->data_current - src->opcode_current - 1 + 3) & ~3; … … 279 279 } 280 280 281 void crPackAppendBuffer( const CRPackBuffer *src )281 void crPackAppendBuffer( CR_PACKER_CONTEXT_ARGDECL const CRPackBuffer *src ) 282 282 { 283 283 CR_GET_PACKER_CONTEXT(pc); … … 294 294 CRASSERT(pc->currentBuffer != src); 295 295 296 if (!crPackCanHoldBuffer( src))296 if (!crPackCanHoldBuffer(CR_PACKER_CONTEXT_ARG src)) 297 297 { 298 298 if (src->holds_BeginEnd) … … 326 326 327 327 void 328 crPackAppendBoundedBuffer( const CRPackBuffer *src, const CRrecti *bounds )328 crPackAppendBoundedBuffer( CR_PACKER_CONTEXT_ARGDECL const CRPackBuffer *src, const CRrecti *bounds ) 329 329 { 330 330 CR_GET_PACKER_CONTEXT(pc); … … 342 342 */ 343 343 344 if ( !crPackCanHoldBoundedBuffer( src ) )344 if ( !crPackCanHoldBoundedBuffer( CR_PACKER_CONTEXT_ARG src ) ) 345 345 { 346 346 if (src->holds_BeginEnd) … … 358 358 359 359 if (pc->swapping) 360 crPackBoundsInfoCRSWAP( bounds, payload, length, num_opcodes );360 crPackBoundsInfoCRSWAP( CR_PACKER_CONTEXT_ARG bounds, payload, length, num_opcodes ); 361 361 else 362 crPackBoundsInfoCR( bounds, payload, length, num_opcodes );362 crPackBoundsInfoCR( CR_PACKER_CONTEXT_ARG bounds, payload, length, num_opcodes ); 363 363 364 364 pc->buffer.holds_BeginEnd |= src->holds_BeginEnd; … … 379 379 * The command buffer _MUST_ then be transmitted by calling crHugePacket. 380 380 */ 381 void *crPackAlloc( unsigned int size )381 void *crPackAlloc( CR_PACKER_CONTEXT_ARGDECL unsigned int size ) 382 382 { 383 383 CR_GET_PACKER_CONTEXT(pc); … … 467 467 * Transmit a packet which was allocated with crPackAlloc. 468 468 */ 469 void crHugePacket( CR Opcode opcode, void *packet )469 void crHugePacket( CR_PACKER_CONTEXT_ARGDECL CROpcode opcode, void *packet ) 470 470 { 471 471 CR_GET_PACKER_CONTEXT(pc); … … 481 481 } 482 482 483 void crPackFree( void *packet )483 void crPackFree( CR_PACKER_CONTEXT_ARGDECL void *packet ) 484 484 { 485 485 CR_GET_PACKER_CONTEXT(pc);
Note:
See TracChangeset
for help on using the changeset viewer.