VirtualBox

Ignore:
Timestamp:
Oct 1, 2012 11:53:15 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
81047
Message:

crOpenGL/wddm: basics for miniport-based visible rects processing (guest part); export flushToHost command

Location:
trunk/src/VBox/GuestHost/OpenGL/packer
Files:
3 edited

Legend:

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

    r42028 r43487  
    150150        CRPackBuffer *buf = pc->currentBuffer;
    151151        CRASSERT(buf);
    152         crPackInitBuffer( buf, buf->pack, buf->size, buf->mtu );
     152        crPackInitBuffer( buf, buf->pack, buf->size, buf->mtu
     153#ifdef IN_RING0
     154                , 0
     155#endif
     156                );
    153157        pc->buffer.geometry_only = geom_only;   /* restore the flag */
    154158        pc->buffer.holds_BeginEnd = holds_BeginEnd;
     
    222226 *              be somewhat smaller than the buffer size.
    223227 */
    224 void crPackInitBuffer( CRPackBuffer *buf, void *pack, int size, int mtu )
    225 {
     228void crPackInitBuffer( CRPackBuffer *buf, void *pack, int size, int mtu
     229#ifdef IN_RING0
     230        , unsigned int num_opcodes
     231#endif
     232        )
     233{
     234#ifndef IN_RING0
    226235        unsigned int num_opcodes;
     236#endif
    227237
    228238        CRASSERT(mtu <= size);
     
    232242        buf->pack = pack;
    233243
    234         num_opcodes = crPackMaxOpcodes( buf->size );
     244#ifdef IN_RING0
     245        if(!num_opcodes)
     246#endif
     247        {
     248            num_opcodes = crPackMaxOpcodes( buf->size );
     249        }
    235250
    236251        buf->data_start    =
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_visibleregion.c

    r33475 r43487  
    2323#endif
    2424
    25 void PACK_APIENTRY crPackWindowVisibleRegion( GLint window, GLint cRects, GLint * pRects )
     25void PACK_APIENTRY crPackWindowVisibleRegion( CR_PACKER_CONTEXT_ARGDECL GLint window, GLint cRects, GLint * pRects )
    2626{
    2727    GLint i, size, cnt;
     
    5050}
    5151
    52 void PACK_APIENTRY crPackWindowVisibleRegionSWAP( GLint window, GLint cRects, GLint * pRects )
     52void PACK_APIENTRY crPackWindowVisibleRegionSWAP( CR_PACKER_CONTEXT_ARGDECL  GLint window, GLint cRects, GLint * pRects )
    5353{
    5454    crError( "crPackWindowVisibleRegionSWAP unimplemented and shouldn't be called" );
  • trunk/src/VBox/GuestHost/OpenGL/packer/packer.py

    r33475 r43487  
    114114    """Emit a packer function."""
    115115    if is_swapped:
    116         print 'void PACK_APIENTRY crPack%sSWAP( %s )' % (func_name, apiutil.MakeDeclarationString(params))
    117     else:
    118         print 'void PACK_APIENTRY crPack%s( %s )' % (func_name, apiutil.MakeDeclarationString(params))
     116        print 'void PACK_APIENTRY crPack%sSWAP( %s )' % (func_name, apiutil.MakeDeclarationStringWithContext('CR_PACKER_CONTEXT', params))
     117    else:
     118        print 'void PACK_APIENTRY crPack%s( %s )' % (func_name, apiutil.MakeDeclarationStringWithContext('CR_PACKER_CONTEXT', params))
    119119    print '{'
    120120    print '\tCR_GET_PACKER_CONTEXT(pc);'
Note: See TracChangeset for help on using the changeset viewer.

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