Changeset 78116 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Apr 12, 2019 10:03:24 AM (6 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_dispatch.py
r69390 r78116 35 35 if wrap: 36 36 print('#if defined(CR_%s)' % wrap) 37 print('void SERVER_DISPATCH_APIENTRY crServerDispatch%s(%s)' % ( func_name, apiutil.MakeDeclarationString ( params ) ))37 print('void SERVER_DISPATCH_APIENTRY crServerDispatch%s(%s)' % ( func_name, apiutil.MakeDeclarationStringForDispatcher( params ) )) 38 38 print('{') 39 print('\tcrState%s(%s);' % (func_name, apiutil.MakeCallString ( params ) ))40 print('\tcr_server.head_spu->dispatch_table.%s(%s);' % (func_name, apiutil.MakeCallString ( params ) ))39 print('\tcrState%s(%s);' % (func_name, apiutil.MakeCallStringForDispatcher( params ) )) 40 print('\tcr_server.head_spu->dispatch_table.%s(%s);' % (func_name, apiutil.MakeCallStringForDispatcher( params ) )) 41 41 print('}') 42 42 if wrap: … … 109 109 print('\t%s' % (condition)) 110 110 print('\t{') 111 print('\t\tcr_server.head_spu->dispatch_table.%s(%s);' % (func_name, apiutil.MakeCallString (params) ))111 print('\t\tcr_server.head_spu->dispatch_table.%s(%s);' % (func_name, apiutil.MakeCallStringForDispatcher(params) )) 112 112 print("\t\tcr_server.current.c.%s.%s%s = cr_unpackData;" % (name,type,array)) 113 113 print('\t}') -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_dispatch_header.py
r69390 r78116 41 41 return_type = apiutil.ReturnType(func_name) 42 42 43 print('%s SERVER_DISPATCH_APIENTRY crServerDispatch%s(%s);' % (return_type, func_name, apiutil.MakeDeclarationString ( params )))43 print('%s SERVER_DISPATCH_APIENTRY crServerDispatch%s(%s);' % (return_type, func_name, apiutil.MakeDeclarationStringForDispatcher( params ))) 44 44 45 45 print(""" -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack.py
r78086 r78116 122 122 else: 123 123 print("\t", end="") 124 print("cr_unpackDispatch.%s(%s);" % (func_name, apiutil.MakeCallString (params)))124 print("cr_unpackDispatch.%s(%s);" % (func_name, apiutil.MakeCallStringForDispatcher(params))) 125 125 126 126 -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c
r71903 r78116 26 26 GLsizei stride = READ_DATA( 16, GLsizei ); 27 27 GLintptrARB pointer = (GLintptrARB) READ_DATA( 20, GLuint ); 28 cr_unpackDispatch.VertexPointer( size, type, stride, (void *) pointer );28 cr_unpackDispatch.VertexPointer( size, type, stride, (void *) pointer, false /*fRealPtr*/ ); 29 29 } 30 30 … … 35 35 GLsizei stride = READ_DATA( 16, GLsizei ); 36 36 GLintptrARB pointer = READ_DATA( 20, GLuint ); 37 cr_unpackDispatch.TexCoordPointer( size, type, stride, (void *) pointer );37 cr_unpackDispatch.TexCoordPointer( size, type, stride, (void *) pointer, false /*fRealPtr*/ ); 38 38 } 39 39 … … 43 43 GLsizei stride = READ_DATA( 12, GLsizei ); 44 44 GLintptrARB pointer = READ_DATA( 16, GLuint ); 45 cr_unpackDispatch.NormalPointer( type, stride, (void *) pointer );45 cr_unpackDispatch.NormalPointer( type, stride, (void *) pointer, false /*fRealPtr*/ ); 46 46 } 47 47 … … 51 51 GLsizei stride = READ_DATA( 12, GLsizei ); 52 52 GLintptrARB pointer = READ_DATA( 16, GLuint ); 53 cr_unpackDispatch.IndexPointer( type, stride, (void *) pointer );53 cr_unpackDispatch.IndexPointer( type, stride, (void *) pointer, false /*fRealPtr*/ ); 54 54 } 55 55 … … 58 58 GLsizei stride = READ_DATA( 8, GLsizei ); 59 59 GLintptrARB pointer = READ_DATA( 12, GLuint ); 60 cr_unpackDispatch.EdgeFlagPointer( stride, (void *) pointer );60 cr_unpackDispatch.EdgeFlagPointer( stride, (void *) pointer, false /*fRealPtr*/ ); 61 61 } 62 62 … … 67 67 GLsizei stride = READ_DATA( 16, GLsizei ); 68 68 GLintptrARB pointer = READ_DATA( 20, GLuint ); 69 cr_unpackDispatch.ColorPointer( size, type, stride, (void *) pointer );69 cr_unpackDispatch.ColorPointer( size, type, stride, (void *) pointer, false /*fRealPtr*/ ); 70 70 } 71 71 … … 75 75 GLsizei stride = READ_DATA( 12, GLsizei ); 76 76 GLintptrARB pointer = READ_DATA( 16, GLuint ); 77 cr_unpackDispatch.FogCoordPointerEXT( type, stride, (void *) pointer );77 cr_unpackDispatch.FogCoordPointerEXT( type, stride, (void *) pointer, false /*fRealPtr*/ ); 78 78 } 79 79 … … 84 84 GLsizei stride = READ_DATA( 16, GLsizei ); 85 85 GLintptrARB pointer = READ_DATA( 20, GLuint ); 86 cr_unpackDispatch.SecondaryColorPointerEXT( size, type, stride, (void *) pointer );86 cr_unpackDispatch.SecondaryColorPointerEXT( size, type, stride, (void *) pointer, false /*fRealPtr*/ ); 87 87 } 88 88 … … 95 95 GLsizei stride = READ_DATA( 24, GLsizei ); 96 96 GLintptrARB pointer = READ_DATA( 28, GLuint ); 97 cr_unpackDispatch.VertexAttribPointerARB( index, size, type, normalized, stride, (void *) pointer );97 cr_unpackDispatch.VertexAttribPointerARB( index, size, type, normalized, stride, (void *) pointer, false /*fRealPtr*/ ); 98 98 } 99 99 … … 105 105 GLsizei stride = READ_DATA( 20, GLsizei ); 106 106 GLintptrARB pointer = READ_DATA( 24, GLuint ); 107 cr_unpackDispatch.VertexAttribPointerNV( index, size, type, stride, (void *) pointer );107 cr_unpackDispatch.VertexAttribPointerNV( index, size, type, stride, (void *) pointer, false /*fRealPtr*/ ); 108 108 } 109 109 … … 113 113 GLsizei stride = READ_DATA( 12, GLsizei ); 114 114 GLintptrARB pointer = READ_DATA( 16, GLuint ); 115 cr_unpackDispatch.InterleavedArrays( format, stride, (void *) pointer );115 cr_unpackDispatch.InterleavedArrays( format, stride, (void *) pointer, false /*fRealPtr*/ ); 116 116 } 117 117 … … 162 162 static void crUnpackSetClientPointerByIndex(int index, GLint size, 163 163 GLenum type, GLboolean normalized, 164 GLsizei stride, const GLvoid *pointer, CRClientState *c )164 GLsizei stride, const GLvoid *pointer, CRClientState *c, int fRealPtr) 165 165 { 166 166 /*crDebug("crUnpackSetClientPointerByIndex: %i(s=%i, t=0x%x, n=%i, str=%i) -> %p", index, size, type, normalized, stride, pointer);*/ … … 171 171 { 172 172 case 0: 173 cr_unpackDispatch.VertexPointer(size, type, stride, pointer );173 cr_unpackDispatch.VertexPointer(size, type, stride, pointer, fRealPtr); 174 174 break; 175 175 case 1: 176 cr_unpackDispatch.ColorPointer(size, type, stride, pointer );176 cr_unpackDispatch.ColorPointer(size, type, stride, pointer, fRealPtr); 177 177 break; 178 178 case 2: 179 cr_unpackDispatch.FogCoordPointerEXT(type, stride, pointer );179 cr_unpackDispatch.FogCoordPointerEXT(type, stride, pointer, fRealPtr); 180 180 break; 181 181 case 3: 182 cr_unpackDispatch.SecondaryColorPointerEXT(size, type, stride, pointer );182 cr_unpackDispatch.SecondaryColorPointerEXT(size, type, stride, pointer, fRealPtr); 183 183 break; 184 184 case 4: 185 cr_unpackDispatch.EdgeFlagPointer(stride, pointer );185 cr_unpackDispatch.EdgeFlagPointer(stride, pointer, fRealPtr); 186 186 break; 187 187 case 5: 188 cr_unpackDispatch.IndexPointer(type, stride, pointer );188 cr_unpackDispatch.IndexPointer(type, stride, pointer, fRealPtr); 189 189 break; 190 190 case 6: 191 cr_unpackDispatch.NormalPointer(type, stride, pointer );191 cr_unpackDispatch.NormalPointer(type, stride, pointer, fRealPtr); 192 192 break; 193 193 } … … 200 200 cr_unpackDispatch.ClientActiveTextureARB(GL_TEXTURE0_ARB+index-7); 201 201 } 202 cr_unpackDispatch.TexCoordPointer(size, type, stride, pointer );202 cr_unpackDispatch.TexCoordPointer(size, type, stride, pointer, fRealPtr); 203 203 if ((index-7)!=curTexUnit) 204 204 { … … 209 209 { 210 210 cr_unpackDispatch.VertexAttribPointerARB(index-7-CR_MAX_TEXTURE_UNITS, 211 size, type, normalized, stride, pointer );211 size, type, normalized, stride, pointer, fRealPtr); 212 212 } 213 213 } … … 265 265 /*crDebug("crUnpackExtendLockArraysEXT: old cp(%i): en/l=%i(%i) p=%p size=%i type=0x%x n=%i str=%i pp=%p pstr=%i", 266 266 index, cp->enabled, cp->locked, cp->p, cp->size, cp->type, cp->normalized, cp->stride, cp->prevPtr, cp->prevStride);*/ 267 crUnpackSetClientPointerByIndex(index, cp->size, cp->type, cp->normalized, 0, data, c );267 crUnpackSetClientPointerByIndex(index, cp->size, cp->type, cp->normalized, 0, data, c, 1 /*fRealPtr*/); 268 268 /*crDebug("crUnpackExtendLockArraysEXT: new cp(%i): en/l=%i(%i) p=%p size=%i type=0x%x n=%i str=%i pp=%p pstr=%i", 269 269 index, cp->enabled, cp->locked, cp->p, cp->size, cp->type, cp->normalized, cp->stride, cp->prevPtr, cp->prevStride);*/ … … 305 305 /*crDebug("crUnpackExtendUnlockArraysEXT: old cp(%i): en/l=%i(%i) p=%p size=%i type=0x%x n=%i str=%i pp=%p pstr=%i", 306 306 i, cp->enabled, cp->locked, cp->p, cp->size, cp->type, cp->normalized, cp->stride, cp->prevPtr, cp->prevStride);*/ 307 crUnpackSetClientPointerByIndex(i, cp->size, cp->type, cp->normalized, cp->prevStride, cp->prevPtr, c); 307 unsigned char *prevPtr = cp->prevPtr; 308 int fRealPtr = cp->fPrevRealPtr; 309 cp->prevPtr = NULL; 310 cp->fPrevRealPtr = 0; 311 crUnpackSetClientPointerByIndex(i, cp->size, cp->type, cp->normalized, cp->prevStride, prevPtr, c, cp->fPrevRealPtr); 308 312 /*crDebug("crUnpackExtendUnlockArraysEXT: new cp(%i): en/l=%i(%i) p=%p size=%i type=0x%x n=%i str=%i pp=%p pstr=%i", 309 313 i, cp->enabled, cp->locked, cp->p, cp->size, cp->type, cp->normalized, cp->stride, cp->prevPtr, cp->prevStride);*/
Note:
See TracChangeset
for help on using the changeset viewer.