VirtualBox

Ignore:
Timestamp:
Jul 5, 2012 3:22:55 PM (12 years ago)
Author:
vboxsync
Message:

wddm/crOpenGL: moreon kernel-based cr commands submission

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_buffer.c

    r41109 r42028  
    258258
    259259
    260 int crPackCanHoldBuffer( const CRPackBuffer *src )
     260int crPackCanHoldBuffer( CR_PACKER_CONTEXT_ARGDECL const CRPackBuffer *src )
    261261{
    262262        const int num_data = crPackNumData(src);
     
    271271
    272272
    273 int crPackCanHoldBoundedBuffer( const CRPackBuffer *src )
     273int crPackCanHoldBoundedBuffer( CR_PACKER_CONTEXT_ARGDECL const CRPackBuffer *src )
    274274{
    275275        const int len_aligned = (src->data_current - src->opcode_current - 1 + 3) & ~3;
     
    279279}
    280280
    281 void crPackAppendBuffer( const CRPackBuffer *src )
     281void crPackAppendBuffer( CR_PACKER_CONTEXT_ARGDECL const CRPackBuffer *src )
    282282{
    283283        CR_GET_PACKER_CONTEXT(pc);
     
    294294        CRASSERT(pc->currentBuffer != src);
    295295
    296         if (!crPackCanHoldBuffer(src))
     296        if (!crPackCanHoldBuffer(CR_PACKER_CONTEXT_ARG src))
    297297        {
    298298                if (src->holds_BeginEnd)
     
    326326
    327327void
    328 crPackAppendBoundedBuffer( const CRPackBuffer *src, const CRrecti *bounds )
     328crPackAppendBoundedBuffer( CR_PACKER_CONTEXT_ARGDECL const CRPackBuffer *src, const CRrecti *bounds )
    329329{
    330330        CR_GET_PACKER_CONTEXT(pc);
     
    342342         */
    343343
    344         if ( !crPackCanHoldBoundedBuffer( src ) )
     344        if ( !crPackCanHoldBoundedBuffer( CR_PACKER_CONTEXT_ARG src ) )
    345345        {
    346346                if (src->holds_BeginEnd)
     
    358358
    359359        if (pc->swapping)
    360                 crPackBoundsInfoCRSWAP( bounds, payload, length, num_opcodes );
     360                crPackBoundsInfoCRSWAP( CR_PACKER_CONTEXT_ARG bounds, payload, length, num_opcodes );
    361361        else
    362                 crPackBoundsInfoCR( bounds, payload, length, num_opcodes );
     362                crPackBoundsInfoCR( CR_PACKER_CONTEXT_ARG bounds, payload, length, num_opcodes );
    363363
    364364        pc->buffer.holds_BeginEnd |= src->holds_BeginEnd;
     
    379379 * The command buffer _MUST_ then be transmitted by calling crHugePacket.
    380380 */
    381 void *crPackAlloc( unsigned int size )
     381void *crPackAlloc( CR_PACKER_CONTEXT_ARGDECL unsigned int size )
    382382{
    383383        CR_GET_PACKER_CONTEXT(pc);
     
    467467 * Transmit a packet which was allocated with crPackAlloc.
    468468 */
    469 void crHugePacket( CROpcode opcode, void *packet )
     469void crHugePacket( CR_PACKER_CONTEXT_ARGDECL CROpcode opcode, void *packet )
    470470{
    471471        CR_GET_PACKER_CONTEXT(pc);
     
    481481}
    482482
    483 void crPackFree( void *packet )
     483void crPackFree( CR_PACKER_CONTEXT_ARGDECL void *packet )
    484484{
    485485        CR_GET_PACKER_CONTEXT(pc);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette