Changeset 43487 in vbox for trunk/src/VBox/GuestHost/OpenGL/packer
- Timestamp:
- Oct 1, 2012 11:53:15 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 81047
- 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 150 150 CRPackBuffer *buf = pc->currentBuffer; 151 151 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 ); 153 157 pc->buffer.geometry_only = geom_only; /* restore the flag */ 154 158 pc->buffer.holds_BeginEnd = holds_BeginEnd; … … 222 226 * be somewhat smaller than the buffer size. 223 227 */ 224 void crPackInitBuffer( CRPackBuffer *buf, void *pack, int size, int mtu ) 225 { 228 void 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 226 235 unsigned int num_opcodes; 236 #endif 227 237 228 238 CRASSERT(mtu <= size); … … 232 242 buf->pack = pack; 233 243 234 num_opcodes = crPackMaxOpcodes( buf->size ); 244 #ifdef IN_RING0 245 if(!num_opcodes) 246 #endif 247 { 248 num_opcodes = crPackMaxOpcodes( buf->size ); 249 } 235 250 236 251 buf->data_start = -
trunk/src/VBox/GuestHost/OpenGL/packer/pack_visibleregion.c
r33475 r43487 23 23 #endif 24 24 25 void PACK_APIENTRY crPackWindowVisibleRegion( GLint window, GLint cRects, GLint * pRects )25 void PACK_APIENTRY crPackWindowVisibleRegion( CR_PACKER_CONTEXT_ARGDECL GLint window, GLint cRects, GLint * pRects ) 26 26 { 27 27 GLint i, size, cnt; … … 50 50 } 51 51 52 void PACK_APIENTRY crPackWindowVisibleRegionSWAP( GLint window, GLint cRects, GLint * pRects )52 void PACK_APIENTRY crPackWindowVisibleRegionSWAP( CR_PACKER_CONTEXT_ARGDECL GLint window, GLint cRects, GLint * pRects ) 53 53 { 54 54 crError( "crPackWindowVisibleRegionSWAP unimplemented and shouldn't be called" ); -
trunk/src/VBox/GuestHost/OpenGL/packer/packer.py
r33475 r43487 114 114 """Emit a packer function.""" 115 115 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)) 119 119 print '{' 120 120 print '\tCR_GET_PACKER_CONTEXT(pc);'
Note:
See TracChangeset
for help on using the changeset viewer.