vbox的更動 63942 路徑 trunk/src/VBox/HostServices
- 時間撮記:
- 2016-9-22 上午11:01:17 (8 年 以前)
- 位置:
- trunk/src/VBox/HostServices/SharedOpenGL
- 檔案:
-
- 修改 11 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_dispatch.py
r63939 r63942 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.MakeDeclarationString( 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.MakeCallString( params ) )) 40 print('\tcr_server.head_spu->dispatch_table.%s(%s);' % (func_name, apiutil.MakeCallString( params ) )) 41 41 print('}') 42 42 if wrap: … … 105 105 if current: 106 106 params = apiutil.Parameters(func_name) 107 print('void SERVER_DISPATCH_APIENTRY crServerDispatch%s( %s)' % ( func_name, apiutil.MakeDeclarationString(params) ))107 print('void SERVER_DISPATCH_APIENTRY crServerDispatch%s(%s)' % ( func_name, apiutil.MakeDeclarationString(params) )) 108 108 print('{') 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.MakeCallString(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
r63939 r63942 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.MakeDeclarationString( params ))) 44 44 45 45 print(""" -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_get.py
r63939 r63942 119 119 params = apiutil.Parameters(func_name) 120 120 121 print('void SERVER_DISPATCH_APIENTRY crServerDispatch%s( %s)' % (func_name, apiutil.MakeDeclarationString( params ) ))121 print('void SERVER_DISPATCH_APIENTRY crServerDispatch%s(%s)' % (func_name, apiutil.MakeDeclarationString( params ) )) 122 122 print('{') 123 123 … … 132 132 params[-1] = (local_argname, local_argtype, 0) 133 133 134 print('\tcr_server.head_spu->dispatch_table.%s( %s);' % ( func_name, apiutil.MakeCallString(params) ))134 print('\tcr_server.head_spu->dispatch_table.%s(%s);' % ( func_name, apiutil.MakeCallString(params) )) 135 135 136 136 if func_name in convert_bufferid: … … 140 140 141 141 if func_name in no_pnames: 142 print('\tcrServerReturnValue( &(%s[0]), %d*sizeof(%s));' % (local_argname, max_components[func_name], local_argtype ))142 print('\tcrServerReturnValue(&(%s[0]), %d*sizeof(%s));' % (local_argname, max_components[func_name], local_argtype )) 143 143 else: 144 print('\tcrServerReturnValue( &(%s[0]), crStateHlpComponentsCount(pname)*sizeof(%s));' % (local_argname, local_argtype ))144 print('\tcrServerReturnValue(&(%s[0]), crStateHlpComponentsCount(pname)*sizeof(%s));' % (local_argname, local_argtype )) 145 145 print ('}\n') -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_retval.py
r63939 r63942 69 69 continue 70 70 if return_type != 'void': 71 print('%s SERVER_DISPATCH_APIENTRY crServerDispatch%s( %s)' % ( return_type, func_name, apiutil.MakeDeclarationString(params)))71 print('%s SERVER_DISPATCH_APIENTRY crServerDispatch%s(%s)' % ( return_type, func_name, apiutil.MakeDeclarationString(params))) 72 72 print('{') 73 73 print('\t%s retval;' % return_type) 74 print('\tretval = cr_server.head_spu->dispatch_table.%s( %s);' % (func_name, apiutil.MakeCallString(params) ))74 print('\tretval = cr_server.head_spu->dispatch_table.%s(%s);' % (func_name, apiutil.MakeCallString(params) )) 75 75 print('\tcrServerReturnValue( &retval, sizeof(retval) );') 76 76 print('\treturn retval; /* WILL PROBABLY BE IGNORED */') -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_simpleget.py
r63939 r63942 30 30 func_name = funcs[index] 31 31 params = apiutil.Parameters(func_name) 32 print('void SERVER_DISPATCH_APIENTRY crServerDispatch%s( %s)' % ( func_name, apiutil.MakeDeclarationString(params)))32 print('void SERVER_DISPATCH_APIENTRY crServerDispatch%s(%s)' % ( func_name, apiutil.MakeDeclarationString(params))) 33 33 print('{') 34 34 print('\t%s *get_values;' % types[index]) -
trunk/src/VBox/HostServices/SharedOpenGL/dlm/dlm_generated.py
r56922 r63942 197 197 callstring += ", c" 198 198 argstring += ", CRClientState *c" 199 print 'void DLM_APIENTRY crDLMCompile%s( %s)' % (functionName, argstring)199 print 'void DLM_APIENTRY crDLMCompile%s(%s)' % (functionName, argstring) 200 200 print '{' 201 201 print ' CRDLMContextState *state = CURRENT_STATE();' -
trunk/src/VBox/HostServices/SharedOpenGL/dlm/dlm_header.py
r56922 r63942 238 238 239 239 if mode == 'header': 240 print 'extern void DLM_APIENTRY crDLMCompile%s( %s);' % (func_name, argstring)240 print 'extern void DLM_APIENTRY crDLMCompile%s(%s);' % (func_name, argstring) 241 241 elif mode == 'defs': 242 242 print "crDLMCompile%s" % func_name … … 262 262 argstring = apiutil.MakeDeclarationString(params) 263 263 if mode == 'header': 264 print 'int DLM_APIENTRY crDLMCheckList%s( %s);' % (func_name, argstring)264 print 'int DLM_APIENTRY crDLMCheckList%s(%s);' % (func_name, argstring) 265 265 elif mode == 'defs': 266 266 print "crDLMCheckList%s" % func_name -
trunk/src/VBox/HostServices/SharedOpenGL/expando/expando.py
r54905 r63942 45 45 needDL = 1 46 46 47 print 'static %s EXPANDOSPU_APIENTRY expando%s( %s)' % ( return_type, func_name, declarationString)47 print 'static %s EXPANDOSPU_APIENTRY expando%s(%s)' % ( return_type, func_name, declarationString) 48 48 print '{' 49 49 if needDL: … … 75 75 print '\texpando_spu.super.%s(%s);' % (func_name, basicCallString) 76 76 if apiutil.SetsClientState(func_name): 77 print '\tcrState%s( %s);' % (func_name, basicCallString)77 print '\tcrState%s(%s);' % (func_name, basicCallString) 78 78 79 79 if return_type != "void": -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack.py
r63939 r63942 71 71 argument out of the buffer's operand area.""" 72 72 if arg_type == "GLdouble" or arg_type == "GLclampd": 73 retval = "READ_DOUBLE( %d)" % offset74 else: 75 retval = "READ_DATA( %d, %s)" % (offset, arg_type)73 retval = "READ_DOUBLE(%d)" % offset 74 else: 75 retval = "READ_DATA(%d, %s)" % (offset, arg_type) 76 76 return retval 77 77 … … 82 82 arg_len = apiutil.PacketLength( params ) 83 83 if (return_type != 'void'): 84 print('\tSET_RETURN_PTR( %d);' % (arg_len + 8)) # extended opcode plus packet length84 print('\tSET_RETURN_PTR(%d);' % (arg_len + 8)) # extended opcode plus packet length 85 85 else: 86 86 paramList = [ ('foo', 'void *', 0) ] 87 print('\tSET_RETURN_PTR( %d);' % (arg_len + 8 - apiutil.PacketLength(paramList)))87 print('\tSET_RETURN_PTR(%d);' % (arg_len + 8 - apiutil.PacketLength(paramList))) 88 88 89 89 … … 95 95 arg_len += apiutil.PacketLength( paramList ) 96 96 97 print('\tSET_WRITEBACK_PTR( %d);' % (arg_len + 8)) # extended opcode plus packet length97 print('\tSET_WRITEBACK_PTR(%d);' % (arg_len + 8)) # extended opcode plus packet length 98 98 99 99 … … 121 121 else: 122 122 print("\t", end="") 123 print("cr_unpackDispatch.%s( %s);" % (func_name, apiutil.MakeCallString(params)))123 print("cr_unpackDispatch.%s(%s);" % (func_name, apiutil.MakeCallString(params))) 124 124 125 125 … … 136 136 print("#else") 137 137 for index in range(0, vecSize): 138 print("\tGLdouble v" + repr(index) + " = READ_DOUBLE(" , repr(index * 8),");")138 print("\tGLdouble v" + repr(index) + " = READ_DOUBLE(" + repr(index * 8) + ");") 139 139 if return_type != "void": 140 print("\t(void) cr_unpackDispatch.%s(" % func_name, end=" 140 print("\t(void) cr_unpackDispatch.%s(" % func_name, end="") 141 141 else: 142 print("\tcr_unpackDispatch.%s(" % func_name, end=" 142 print("\tcr_unpackDispatch.%s(" % func_name, end="") 143 143 for index in range(0, vecSize): 144 print("v" + repr(index), end=" 144 print("v" + repr(index), end="") 145 145 if index != vecSize - 1: 146 146 print(",", end=" ") … … 178 178 print("\tINCR_DATA_PTR_NO_ARGS( );") 179 179 else: 180 print("\tINCR_DATA_PTR( %d);" % packet_length)180 print("\tINCR_DATA_PTR(%d);" % packet_length) 181 181 print("}\n") 182 182 … … 258 258 #endif 259 259 260 for (i = 0 ; i < num_opcodes; i++)260 for (i = 0; i < num_opcodes; i++) 261 261 { 262 262 -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_map.c
r15532 r63942 10 10 11 11 12 void crUnpackMap2d( void)12 void crUnpackMap2d(void) 13 13 { 14 GLenum target = READ_DATA( sizeof( int ) + 0, GLenum);15 GLdouble u1 = READ_DOUBLE( sizeof( int ) + 4);16 GLdouble u2 = READ_DOUBLE( sizeof( int ) + 12);17 GLint ustride = READ_DATA( sizeof( int ) + 20, GLint);18 GLint uorder = READ_DATA( sizeof( int ) + 24, GLint);19 GLdouble v1 = READ_DOUBLE( sizeof( int ) + 28);20 GLdouble v2 = READ_DOUBLE( sizeof( int ) + 36);21 GLint vstride = READ_DATA( sizeof( int ) + 44, GLint);22 GLint vorder = READ_DATA( sizeof( int ) + 48, GLint);14 GLenum target = READ_DATA(sizeof(int) + 0, GLenum); 15 GLdouble u1 = READ_DOUBLE(sizeof(int) + 4); 16 GLdouble u2 = READ_DOUBLE(sizeof(int) + 12); 17 GLint ustride = READ_DATA(sizeof(int) + 20, GLint); 18 GLint uorder = READ_DATA(sizeof(int) + 24, GLint); 19 GLdouble v1 = READ_DOUBLE(sizeof(int) + 28); 20 GLdouble v2 = READ_DOUBLE(sizeof(int) + 36); 21 GLint vstride = READ_DATA(sizeof(int) + 44, GLint); 22 GLint vorder = READ_DATA(sizeof(int) + 48, GLint); 23 23 24 int n_points = READ_DATA( 0, int ) - ( sizeof( int ) + 52);24 int n_points = READ_DATA(0, int) - (sizeof(int) + 52); 25 25 GLdouble *points; 26 26 27 if ( n_points & 0x7)28 crError( "crUnpackMap2d: n_points=%d, expected multiple of 8\n", n_points);29 points = (GLdouble *) crAlloc( n_points);30 crMemcpy( points, DATA_POINTER( sizeof(int) + 52, GLdouble ), n_points);27 if (n_points & 0x7) 28 crError("crUnpackMap2d: n_points=%d, expected multiple of 8\n", n_points); 29 points = (GLdouble *) crAlloc(n_points); 30 crMemcpy(points, DATA_POINTER(sizeof(int) + 52, GLdouble), n_points); 31 31 32 cr_unpackDispatch.Map2d( 33 points 34 crFree( points);32 cr_unpackDispatch.Map2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, 33 points); 34 crFree(points); 35 35 36 36 INCR_VAR_PTR(); 37 37 } 38 38 39 void crUnpackMap2f( void)39 void crUnpackMap2f(void) 40 40 { 41 GLenum target = READ_DATA( sizeof( int ) + 0, GLenum);42 GLfloat u1 = READ_DATA( sizeof( int ) + 4, GLfloat);43 GLfloat u2 = READ_DATA( sizeof( int ) + 8, GLfloat);44 GLint ustride = READ_DATA( sizeof( int ) + 12, GLint);45 GLint uorder = READ_DATA( sizeof( int ) + 16, GLint);46 GLfloat v1 = READ_DATA( sizeof( int ) + 20, GLfloat);47 GLfloat v2 = READ_DATA( sizeof( int ) + 24, GLfloat);48 GLint vstride = READ_DATA( sizeof( int ) + 28, GLint);49 GLint vorder = READ_DATA( sizeof( int ) + 32, GLint);50 GLfloat *points = DATA_POINTER( sizeof( int ) + 36 , GLfloat);41 GLenum target = READ_DATA(sizeof(int) + 0, GLenum); 42 GLfloat u1 = READ_DATA(sizeof(int) + 4, GLfloat); 43 GLfloat u2 = READ_DATA(sizeof(int) + 8, GLfloat); 44 GLint ustride = READ_DATA(sizeof(int) + 12, GLint); 45 GLint uorder = READ_DATA(sizeof(int) + 16, GLint); 46 GLfloat v1 = READ_DATA(sizeof(int) + 20, GLfloat); 47 GLfloat v2 = READ_DATA(sizeof(int) + 24, GLfloat); 48 GLint vstride = READ_DATA(sizeof(int) + 28, GLint); 49 GLint vorder = READ_DATA(sizeof(int) + 32, GLint); 50 GLfloat *points = DATA_POINTER(sizeof(int) + 36 , GLfloat); 51 51 52 cr_unpackDispatch.Map2f( 53 points 52 cr_unpackDispatch.Map2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, 53 points); 54 54 INCR_VAR_PTR(); 55 55 } 56 56 57 void crUnpackMap1d( void)57 void crUnpackMap1d(void) 58 58 { 59 GLenum target = READ_DATA( sizeof( int ) + 0, GLenum);60 GLdouble u1 = READ_DOUBLE( sizeof( int ) + 4);61 GLdouble u2 = READ_DOUBLE( sizeof( int ) + 12);62 GLint stride = READ_DATA( sizeof( int ) + 20, GLint);63 GLint order = READ_DATA( sizeof( int ) + 24, GLint);59 GLenum target = READ_DATA(sizeof(int) + 0, GLenum); 60 GLdouble u1 = READ_DOUBLE(sizeof(int) + 4); 61 GLdouble u2 = READ_DOUBLE(sizeof(int) + 12); 62 GLint stride = READ_DATA(sizeof(int) + 20, GLint); 63 GLint order = READ_DATA(sizeof(int) + 24, GLint); 64 64 65 int n_points = READ_DATA( 0, int ) - ( sizeof(int) + 28);65 int n_points = READ_DATA(0, int) - (sizeof(int) + 28); 66 66 GLdouble *points; 67 67 68 if ( n_points & 0x7)69 crError( "crUnpackMap1d: n_points=%d, expected multiple of 8\n", n_points);70 points = (GLdouble *) crAlloc( n_points);71 crMemcpy( points, DATA_POINTER( sizeof(int) + 28, GLdouble ), n_points);68 if (n_points & 0x7) 69 crError("crUnpackMap1d: n_points=%d, expected multiple of 8\n", n_points); 70 points = (GLdouble *) crAlloc(n_points); 71 crMemcpy(points, DATA_POINTER(sizeof(int) + 28, GLdouble), n_points); 72 72 73 cr_unpackDispatch.Map1d( target, u1, u2, stride, order, points);74 crFree( points);73 cr_unpackDispatch.Map1d(target, u1, u2, stride, order, points); 74 crFree(points); 75 75 76 76 INCR_VAR_PTR(); 77 77 } 78 78 79 void crUnpackMap1f( void)79 void crUnpackMap1f(void) 80 80 { 81 GLenum target = READ_DATA( sizeof( int ) + 0, GLenum);82 GLfloat u1 = READ_DATA( sizeof( int ) + 4, GLfloat);83 GLfloat u2 = READ_DATA( sizeof( int ) + 8, GLfloat);84 GLint stride = READ_DATA( sizeof( int ) + 12, GLint);85 GLint order = READ_DATA( sizeof( int ) + 16, GLint);86 GLfloat *points = DATA_POINTER( sizeof( int ) + 20, GLfloat);81 GLenum target = READ_DATA(sizeof(int) + 0, GLenum); 82 GLfloat u1 = READ_DATA(sizeof(int) + 4, GLfloat); 83 GLfloat u2 = READ_DATA(sizeof(int) + 8, GLfloat); 84 GLint stride = READ_DATA(sizeof(int) + 12, GLint); 85 GLint order = READ_DATA(sizeof(int) + 16, GLint); 86 GLfloat *points = DATA_POINTER(sizeof(int) + 20, GLfloat); 87 87 88 cr_unpackDispatch.Map1f( target, u1, u2, stride, order, points);88 cr_unpackDispatch.Map1f(target, u1, u2, stride, order, points); 89 89 INCR_VAR_PTR(); 90 90 } -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_program.c
r15532 r63942 14 14 void crUnpackExtendProgramParameter4dvNV(void) 15 15 { 16 GLenum target = READ_DATA( 8, GLenum);17 GLuint index = READ_DATA( 12, GLuint);18 GLdouble params[4]; 19 params[0] = READ_DOUBLE( 16);20 params[1] = READ_DOUBLE( 24);21 params[2] = READ_DOUBLE( 32);22 params[3] = READ_DOUBLE( 40);23 cr_unpackDispatch.ProgramParameter4dvNV( target, index, params);16 GLenum target = READ_DATA(8, GLenum); 17 GLuint index = READ_DATA(12, GLuint); 18 GLdouble params[4]; 19 params[0] = READ_DOUBLE(16); 20 params[1] = READ_DOUBLE(24); 21 params[2] = READ_DOUBLE(32); 22 params[3] = READ_DOUBLE(40); 23 cr_unpackDispatch.ProgramParameter4dvNV(target, index, params); 24 24 } 25 25 … … 27 27 void crUnpackExtendProgramParameter4fvNV(void) 28 28 { 29 GLenum target = READ_DATA( 8, GLenum);30 GLuint index = READ_DATA( 12, GLuint);31 GLfloat params[4]; 32 params[0] = READ_DATA( 16, GLfloat);33 params[1] = READ_DATA( 20, GLfloat);34 params[2] = READ_DATA( 24, GLfloat);35 params[3] = READ_DATA( 28, GLfloat);36 cr_unpackDispatch.ProgramParameter4fvNV( target, index, params);29 GLenum target = READ_DATA(8, GLenum); 30 GLuint index = READ_DATA(12, GLuint); 31 GLfloat params[4]; 32 params[0] = READ_DATA(16, GLfloat); 33 params[1] = READ_DATA(20, GLfloat); 34 params[2] = READ_DATA(24, GLfloat); 35 params[3] = READ_DATA(28, GLfloat); 36 cr_unpackDispatch.ProgramParameter4fvNV(target, index, params); 37 37 } 38 38 … … 40 40 void crUnpackExtendProgramParameters4dvNV(void) 41 41 { 42 GLenum target = READ_DATA( 8, GLenum);43 GLuint index = READ_DATA( 12, GLuint);44 GLuint num = READ_DATA( 42 GLenum target = READ_DATA(8, GLenum); 43 GLuint index = READ_DATA(12, GLuint); 44 GLuint num = READ_DATA(16, GLuint); 45 45 GLdouble *params = (GLdouble *) crAlloc(num * 4 * sizeof(GLdouble)); 46 46 if (params) { 47 47 GLuint i; 48 48 for (i = 0; i < 4 * num; i++) { 49 params[i] = READ_DATA( 20 + i * 8, GLdouble);49 params[i] = READ_DATA(20 + i * 8, GLdouble); 50 50 } 51 cr_unpackDispatch.ProgramParameters4dvNV( target, index, num, params);51 cr_unpackDispatch.ProgramParameters4dvNV(target, index, num, params); 52 52 crFree(params); 53 53 } … … 57 57 void crUnpackExtendProgramParameters4fvNV(void) 58 58 { 59 GLenum target = READ_DATA( 8, GLenum);60 GLuint index = READ_DATA( 12, GLuint);61 GLuint num = READ_DATA( 59 GLenum target = READ_DATA(8, GLenum); 60 GLuint index = READ_DATA(12, GLuint); 61 GLuint num = READ_DATA(16, GLuint); 62 62 GLfloat *params = (GLfloat *) crAlloc(num * 4 * sizeof(GLfloat)); 63 63 if (params) { 64 64 GLuint i; 65 65 for (i = 0; i < 4 * num; i++) { 66 params[i] = READ_DATA( 20 + i * 4, GLfloat);66 params[i] = READ_DATA(20 + i * 4, GLfloat); 67 67 } 68 cr_unpackDispatch.ProgramParameters4fvNV( target, index, num, params);68 cr_unpackDispatch.ProgramParameters4fvNV(target, index, num, params); 69 69 crFree(params); 70 70 } … … 74 74 void crUnpackExtendAreProgramsResidentNV(void) 75 75 { 76 GLsizei n = READ_DATA( 8, GLsizei);77 const GLuint *programs = DATA_POINTER( 12, const GLuint);76 GLsizei n = READ_DATA(8, GLsizei); 77 const GLuint *programs = DATA_POINTER(12, const GLuint); 78 78 SET_RETURN_PTR(12 + n * sizeof(GLuint)); 79 79 SET_WRITEBACK_PTR(20 + n * sizeof(GLuint)); 80 (void) cr_unpackDispatch.AreProgramsResidentNV( n, programs, NULL);80 (void) cr_unpackDispatch.AreProgramsResidentNV(n, programs, NULL); 81 81 } 82 82 … … 84 84 void crUnpackExtendLoadProgramNV(void) 85 85 { 86 GLenum target = READ_DATA( 8, GLenum);87 GLuint id = READ_DATA( 12, GLuint);88 GLsizei len = READ_DATA( 16, GLsizei);89 GLvoid *program = DATA_POINTER( 20, GLvoid);90 cr_unpackDispatch.LoadProgramNV( target, id, len, program);86 GLenum target = READ_DATA(8, GLenum); 87 GLuint id = READ_DATA(12, GLuint); 88 GLsizei len = READ_DATA(16, GLsizei); 89 GLvoid *program = DATA_POINTER(20, GLvoid); 90 cr_unpackDispatch.LoadProgramNV(target, id, len, program); 91 91 } 92 92 … … 94 94 void crUnpackExtendExecuteProgramNV(void) 95 95 { 96 GLenum target = READ_DATA( 8, GLenum);97 GLuint id = READ_DATA( 12, GLuint);98 GLfloat params[4]; 99 params[0] = READ_DATA( 16, GLfloat);100 params[1] = READ_DATA( 20, GLfloat);101 params[2] = READ_DATA( 24, GLfloat);102 params[3] = READ_DATA( 28, GLfloat);103 cr_unpackDispatch.ExecuteProgramNV( target, id, params);96 GLenum target = READ_DATA(8, GLenum); 97 GLuint id = READ_DATA(12, GLuint); 98 GLfloat params[4]; 99 params[0] = READ_DATA(16, GLfloat); 100 params[1] = READ_DATA(20, GLfloat); 101 params[2] = READ_DATA(24, GLfloat); 102 params[3] = READ_DATA(28, GLfloat); 103 cr_unpackDispatch.ExecuteProgramNV(target, id, params); 104 104 } 105 105 106 106 void crUnpackExtendRequestResidentProgramsNV(void) 107 107 { 108 GLsizei n = READ_DATA( 8, GLsizei);109 crError( "RequestResidentProgramsNV needs to be special cased!");110 cr_unpackDispatch.RequestResidentProgramsNV( n, NULL);108 GLsizei n = READ_DATA(8, GLsizei); 109 crError("RequestResidentProgramsNV needs to be special cased!"); 110 cr_unpackDispatch.RequestResidentProgramsNV(n, NULL); 111 111 } 112 112 … … 114 114 void crUnpackExtendProgramLocalParameter4fvARB(void) 115 115 { 116 GLenum target = READ_DATA( 8, GLenum);117 GLuint index = READ_DATA( 12, GLuint);118 GLfloat params[4]; 119 params[0] = READ_DATA( 16, GLfloat);120 params[1] = READ_DATA( 20, GLfloat);121 params[2] = READ_DATA( 24, GLfloat);122 params[3] = READ_DATA( 28, GLfloat);123 cr_unpackDispatch.ProgramLocalParameter4fvARB( target, index, params);116 GLenum target = READ_DATA(8, GLenum); 117 GLuint index = READ_DATA(12, GLuint); 118 GLfloat params[4]; 119 params[0] = READ_DATA(16, GLfloat); 120 params[1] = READ_DATA(20, GLfloat); 121 params[2] = READ_DATA(24, GLfloat); 122 params[3] = READ_DATA(28, GLfloat); 123 cr_unpackDispatch.ProgramLocalParameter4fvARB(target, index, params); 124 124 } 125 125 … … 127 127 void crUnpackExtendProgramLocalParameter4dvARB(void) 128 128 { 129 GLenum target = READ_DATA( 8, GLenum);130 GLuint index = READ_DATA( 12, GLuint);131 GLdouble params[4]; 132 params[0] = READ_DOUBLE( 16);133 params[1] = READ_DOUBLE( 24);134 params[2] = READ_DOUBLE( 32);135 params[3] = READ_DOUBLE( 40);136 cr_unpackDispatch.ProgramLocalParameter4dvARB( target, index, params);129 GLenum target = READ_DATA(8, GLenum); 130 GLuint index = READ_DATA(12, GLuint); 131 GLdouble params[4]; 132 params[0] = READ_DOUBLE(16); 133 params[1] = READ_DOUBLE(24); 134 params[2] = READ_DOUBLE(32); 135 params[3] = READ_DOUBLE(40); 136 cr_unpackDispatch.ProgramLocalParameter4dvARB(target, index, params); 137 137 } 138 138 … … 141 141 void crUnpackExtendProgramNamedParameter4dvNV(void) 142 142 { 143 GLuint id = READ_DATA( 8, GLuint);144 GLsizei len = READ_DATA( 12, GLsizei);145 GLdouble params[4]; 146 GLubyte *name = crAlloc( len);147 params[0] = READ_DOUBLE( 16);148 params[1] = READ_DOUBLE( 24);149 params[2] = READ_DOUBLE( 32);150 params[3] = READ_DOUBLE( 40);151 crMemcpy( name, DATA_POINTER( 48, GLubyte ), len);152 cr_unpackDispatch.ProgramNamedParameter4dvNV( id, len, name, params);143 GLuint id = READ_DATA(8, GLuint); 144 GLsizei len = READ_DATA(12, GLsizei); 145 GLdouble params[4]; 146 GLubyte *name = crAlloc(len); 147 params[0] = READ_DOUBLE(16); 148 params[1] = READ_DOUBLE(24); 149 params[2] = READ_DOUBLE(32); 150 params[3] = READ_DOUBLE(40); 151 crMemcpy(name, DATA_POINTER(48, GLubyte), len); 152 cr_unpackDispatch.ProgramNamedParameter4dvNV(id, len, name, params); 153 153 } 154 154 155 155 void crUnpackExtendProgramNamedParameter4dNV(void) 156 156 { 157 GLuint id = READ_DATA( 8, GLuint);158 GLsizei len = READ_DATA( 12, GLsizei);159 GLdouble params[4]; 160 GLubyte *name = crAlloc ( len);161 params[0] = READ_DOUBLE( 16);162 params[1] = READ_DOUBLE( 24);163 params[2] = READ_DOUBLE( 32);164 params[3] = READ_DOUBLE( 40);165 crMemcpy( name, DATA_POINTER( 48, GLubyte ), len);166 cr_unpackDispatch.ProgramNamedParameter4dNV( id, len, name, params[0], params[1], params[2], params[3]);157 GLuint id = READ_DATA(8, GLuint); 158 GLsizei len = READ_DATA(12, GLsizei); 159 GLdouble params[4]; 160 GLubyte *name = crAlloc (len); 161 params[0] = READ_DOUBLE(16); 162 params[1] = READ_DOUBLE(24); 163 params[2] = READ_DOUBLE(32); 164 params[3] = READ_DOUBLE(40); 165 crMemcpy(name, DATA_POINTER(48, GLubyte), len); 166 cr_unpackDispatch.ProgramNamedParameter4dNV(id, len, name, params[0], params[1], params[2], params[3]); 167 167 } 168 168 169 169 void crUnpackExtendProgramNamedParameter4fNV(void) 170 170 { 171 GLenum id = READ_DATA( 8, GLuint);172 GLsizei len = READ_DATA( 12, GLsizei);173 GLfloat params[4]; 174 GLubyte *name = crAlloc( 175 params[0] = READ_DATA( 16, GLfloat);176 params[1] = READ_DATA( 20, GLfloat);177 params[2] = READ_DATA( 24, GLfloat);178 params[3] = READ_DATA( 28, GLfloat);179 crMemcpy( name, DATA_POINTER( 32, GLubyte ), len);180 cr_unpackDispatch.ProgramNamedParameter4fNV( id, len, name, params[0], params[1], params[2], params[3]);171 GLenum id = READ_DATA(8, GLuint); 172 GLsizei len = READ_DATA(12, GLsizei); 173 GLfloat params[4]; 174 GLubyte *name = crAlloc(len); 175 params[0] = READ_DATA(16, GLfloat); 176 params[1] = READ_DATA(20, GLfloat); 177 params[2] = READ_DATA(24, GLfloat); 178 params[3] = READ_DATA(28, GLfloat); 179 crMemcpy(name, DATA_POINTER(32, GLubyte), len); 180 cr_unpackDispatch.ProgramNamedParameter4fNV(id, len, name, params[0], params[1], params[2], params[3]); 181 181 } 182 182 183 183 void crUnpackExtendProgramNamedParameter4fvNV(void) 184 184 { 185 GLenum id = READ_DATA( 8, GLuint);186 GLsizei len = READ_DATA( 12, GLsizei);187 GLfloat params[4]; 188 GLubyte *name = crAlloc( 189 params[0] = READ_DATA( 16, GLfloat);190 params[1] = READ_DATA( 20, GLfloat);191 params[2] = READ_DATA( 24, GLfloat);192 params[3] = READ_DATA( 28, GLfloat);193 crMemcpy( name, DATA_POINTER( 32, GLubyte ), len);194 cr_unpackDispatch.ProgramNamedParameter4fvNV( id, len, name, params);185 GLenum id = READ_DATA(8, GLuint); 186 GLsizei len = READ_DATA(12, GLsizei); 187 GLfloat params[4]; 188 GLubyte *name = crAlloc(len); 189 params[0] = READ_DATA(16, GLfloat); 190 params[1] = READ_DATA(20, GLfloat); 191 params[2] = READ_DATA(24, GLfloat); 192 params[3] = READ_DATA(28, GLfloat); 193 crMemcpy(name, DATA_POINTER(32, GLubyte), len); 194 cr_unpackDispatch.ProgramNamedParameter4fvNV(id, len, name, params); 195 195 } 196 196 197 197 void crUnpackExtendGetProgramNamedParameterdvNV(void) 198 198 { 199 GLuint id = READ_DATA( 8, GLuint);200 GLsizei len = READ_DATA( 12, GLsizei);201 const GLubyte *name = DATA_POINTER( 16, GLubyte);202 SET_RETURN_PTR( 16+len);203 SET_WRITEBACK_PTR( 16+len+8);204 cr_unpackDispatch.GetProgramNamedParameterdvNV( id, len, name, NULL);199 GLuint id = READ_DATA(8, GLuint); 200 GLsizei len = READ_DATA(12, GLsizei); 201 const GLubyte *name = DATA_POINTER(16, GLubyte); 202 SET_RETURN_PTR(16+len); 203 SET_WRITEBACK_PTR(16+len+8); 204 cr_unpackDispatch.GetProgramNamedParameterdvNV(id, len, name, NULL); 205 205 } 206 206 207 207 void crUnpackExtendGetProgramNamedParameterfvNV(void) 208 208 { 209 GLuint id = READ_DATA( 8, GLuint);210 GLsizei len = READ_DATA( 12, GLsizei);211 const GLubyte *name = DATA_POINTER( 16, GLubyte);212 SET_RETURN_PTR( 16+len);213 SET_WRITEBACK_PTR( 16+len+8);214 cr_unpackDispatch.GetProgramNamedParameterfvNV( id, len, name, NULL);209 GLuint id = READ_DATA(8, GLuint); 210 GLsizei len = READ_DATA(12, GLsizei); 211 const GLubyte *name = DATA_POINTER(16, GLubyte); 212 SET_RETURN_PTR(16+len); 213 SET_WRITEBACK_PTR(16+len+8); 214 cr_unpackDispatch.GetProgramNamedParameterfvNV(id, len, name, NULL); 215 215 } 216 216 217 217 void crUnpackExtendProgramStringARB(void) 218 218 { 219 GLenum target = READ_DATA( 8, GLenum);220 GLenum format = READ_DATA( 12, GLuint);221 GLsizei len = READ_DATA( 16, GLsizei);222 GLvoid *program = DATA_POINTER( 20, GLvoid);223 cr_unpackDispatch.ProgramStringARB( target, format, len, program);219 GLenum target = READ_DATA(8, GLenum); 220 GLenum format = READ_DATA(12, GLuint); 221 GLsizei len = READ_DATA(16, GLsizei); 222 GLvoid *program = DATA_POINTER(20, GLvoid); 223 cr_unpackDispatch.ProgramStringARB(target, format, len, program); 224 224 } 225 225 … … 230 230 void crUnpackExtendProgramEnvParameter4dvARB(void) 231 231 { 232 GLenum target = READ_DATA( 8, GLenum);233 GLuint index = READ_DATA( 12, GLuint);234 GLdouble params[4]; 235 params[0] = READ_DOUBLE( 16);236 params[1] = READ_DOUBLE( 24);237 params[2] = READ_DOUBLE( 32);238 params[3] = READ_DOUBLE( 40);239 cr_unpackDispatch.ProgramEnvParameter4dvARB( target, index, params);232 GLenum target = READ_DATA(8, GLenum); 233 GLuint index = READ_DATA(12, GLuint); 234 GLdouble params[4]; 235 params[0] = READ_DOUBLE(16); 236 params[1] = READ_DOUBLE(24); 237 params[2] = READ_DOUBLE(32); 238 params[3] = READ_DOUBLE(40); 239 cr_unpackDispatch.ProgramEnvParameter4dvARB(target, index, params); 240 240 } 241 241 242 242 void crUnpackExtendProgramEnvParameter4fvARB(void) 243 243 { 244 GLenum target = READ_DATA( 8, GLenum);245 GLuint index = READ_DATA( 12, GLuint);246 GLfloat params[4]; 247 params[0] = READ_DATA( 16, GLfloat);248 params[1] = READ_DATA( 20, GLfloat);249 params[2] = READ_DATA( 24, GLfloat);250 params[3] = READ_DATA( 28, GLfloat);251 cr_unpackDispatch.ProgramEnvParameter4fvARB( target, index, params);244 GLenum target = READ_DATA(8, GLenum); 245 GLuint index = READ_DATA(12, GLuint); 246 GLfloat params[4]; 247 params[0] = READ_DATA(16, GLfloat); 248 params[1] = READ_DATA(20, GLfloat); 249 params[2] = READ_DATA(24, GLfloat); 250 params[3] = READ_DATA(28, GLfloat); 251 cr_unpackDispatch.ProgramEnvParameter4fvARB(target, index, params); 252 252 } 253 253 254 254 void crUnpackExtendDeleteProgramsARB(void) 255 255 { 256 GLsizei n = READ_DATA( 8, GLsizei);257 const GLuint *programs = DATA_POINTER( 12, GLuint);258 cr_unpackDispatch.DeleteProgramsARB( n, programs);256 GLsizei n = READ_DATA(8, GLsizei); 257 const GLuint *programs = DATA_POINTER(12, GLuint); 258 cr_unpackDispatch.DeleteProgramsARB(n, programs); 259 259 } 260 260 261 261 void crUnpackVertexAttrib4NbvARB(void) 262 262 { 263 GLuint index = READ_DATA( 0, GLuint);263 GLuint index = READ_DATA(0, GLuint); 264 264 const GLbyte *v = DATA_POINTER(4, const GLbyte); 265 cr_unpackDispatch.VertexAttrib4NbvARB( index, v);266 INCR_DATA_PTR( 8);265 cr_unpackDispatch.VertexAttrib4NbvARB(index, v); 266 INCR_DATA_PTR(8); 267 267 } 268 268 269 269 void crUnpackVertexAttrib4NivARB(void) 270 270 { 271 GLuint index = READ_DATA( 0, GLuint);271 GLuint index = READ_DATA(0, GLuint); 272 272 const GLint *v = DATA_POINTER(4, const GLint); 273 cr_unpackDispatch.VertexAttrib4NivARB( index, v);274 INCR_DATA_PTR( 20);273 cr_unpackDispatch.VertexAttrib4NivARB(index, v); 274 INCR_DATA_PTR(20); 275 275 } 276 276 277 277 void crUnpackVertexAttrib4NsvARB(void) 278 278 { 279 GLuint index = READ_DATA( 0, GLuint);279 GLuint index = READ_DATA(0, GLuint); 280 280 const GLshort *v = DATA_POINTER(4, const GLshort); 281 cr_unpackDispatch.VertexAttrib4NsvARB( index, v);282 INCR_DATA_PTR( 12);281 cr_unpackDispatch.VertexAttrib4NsvARB(index, v); 282 INCR_DATA_PTR(12); 283 283 } 284 284 285 285 void crUnpackVertexAttrib4NubvARB(void) 286 286 { 287 GLuint index = READ_DATA( 0, GLuint);287 GLuint index = READ_DATA(0, GLuint); 288 288 const GLubyte *v = DATA_POINTER(4, const GLubyte); 289 cr_unpackDispatch.VertexAttrib4NubvARB( index, v);290 INCR_DATA_PTR( 8);289 cr_unpackDispatch.VertexAttrib4NubvARB(index, v); 290 INCR_DATA_PTR(8); 291 291 } 292 292 293 293 void crUnpackVertexAttrib4NuivARB(void) 294 294 { 295 GLuint index = READ_DATA( 0, GLuint);295 GLuint index = READ_DATA(0, GLuint); 296 296 const GLuint *v = DATA_POINTER(4, const GLuint); 297 cr_unpackDispatch.VertexAttrib4NuivARB( index, v);298 INCR_DATA_PTR( 20);297 cr_unpackDispatch.VertexAttrib4NuivARB(index, v); 298 INCR_DATA_PTR(20); 299 299 } 300 300 301 301 void crUnpackVertexAttrib4NusvARB(void) 302 302 { 303 GLuint index = READ_DATA( 0, GLuint);303 GLuint index = READ_DATA(0, GLuint); 304 304 const GLushort *v = DATA_POINTER(4, const GLushort); 305 cr_unpackDispatch.VertexAttrib4NusvARB( index, v);306 INCR_DATA_PTR( 12);305 cr_unpackDispatch.VertexAttrib4NusvARB(index, v); 306 INCR_DATA_PTR(12); 307 307 } 308 308 309 309 void crUnpackVertexAttrib4bvARB(void) 310 310 { 311 GLuint index = READ_DATA( 0, GLuint);311 GLuint index = READ_DATA(0, GLuint); 312 312 const GLbyte *v = DATA_POINTER(4, const GLbyte); 313 cr_unpackDispatch.VertexAttrib4bvARB( index, v);314 INCR_DATA_PTR( 8);313 cr_unpackDispatch.VertexAttrib4bvARB(index, v); 314 INCR_DATA_PTR(8); 315 315 } 316 316 317 317 void crUnpackVertexAttrib4ivARB(void) 318 318 { 319 GLuint index = READ_DATA( 0, GLuint);319 GLuint index = READ_DATA(0, GLuint); 320 320 const GLint *v = DATA_POINTER(4, const GLint); 321 cr_unpackDispatch.VertexAttrib4ivARB( index, v);322 INCR_DATA_PTR( 20);321 cr_unpackDispatch.VertexAttrib4ivARB(index, v); 322 INCR_DATA_PTR(20); 323 323 } 324 324 325 325 void crUnpackVertexAttrib4ubvARB(void) 326 326 { 327 GLuint index = READ_DATA( 0, GLuint);327 GLuint index = READ_DATA(0, GLuint); 328 328 const GLubyte *v = DATA_POINTER(4, const GLubyte); 329 cr_unpackDispatch.VertexAttrib4ubvARB( index, v);330 INCR_DATA_PTR( 8);329 cr_unpackDispatch.VertexAttrib4ubvARB(index, v); 330 INCR_DATA_PTR(8); 331 331 } 332 332 333 333 void crUnpackVertexAttrib4uivARB(void) 334 334 { 335 GLuint index = READ_DATA( 0, GLuint);335 GLuint index = READ_DATA(0, GLuint); 336 336 const GLuint *v = DATA_POINTER(4, const GLuint); 337 cr_unpackDispatch.VertexAttrib4uivARB( index, v);338 INCR_DATA_PTR( 20);337 cr_unpackDispatch.VertexAttrib4uivARB(index, v); 338 INCR_DATA_PTR(20); 339 339 } 340 340 341 341 void crUnpackVertexAttrib4usvARB(void) 342 342 { 343 GLuint index = READ_DATA( 0, GLuint);343 GLuint index = READ_DATA(0, GLuint); 344 344 const GLushort *v = DATA_POINTER(4, const GLushort); 345 cr_unpackDispatch.VertexAttrib4usvARB( index, v);346 INCR_DATA_PTR( 12);347 } 345 cr_unpackDispatch.VertexAttrib4usvARB(index, v); 346 INCR_DATA_PTR(12); 347 }
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器