• Home
  • Raw
  • Download

Lines Matching refs:func

80     def print_sync_call(self, func):  argument
82 func.name, func.get_called_parameter_string())
83 if func.return_type == 'void':
88 def print_sync_dispatch(self, func): argument
89 out('debug_print_sync_fallback("{0}");'.format(func.name))
90 self.print_sync_call(func)
92 def print_sync_body(self, func): argument
93 out('/* {0}: marshalled synchronously */'.format(func.name))
94 out('static {0} GLAPIENTRY'.format(func.return_type))
95 out('_mesa_marshal_{0}({1})'.format(func.name, func.get_parameter_string()))
100 out('debug_print_sync("{0}");'.format(func.name))
101 self.print_sync_call(func)
106 def print_async_dispatch(self, func): argument
108 'DISPATCH_CMD_{0}, cmd_size);'.format(func.name))
109 for p in func.fixed_params:
115 if func.variable_params:
117 for p in func.variable_params:
133 if not func.fixed_params and not func.variable_params:
137 def print_async_struct(self, func): argument
138 out('struct marshal_cmd_{0}'.format(func.name))
142 for p in func.fixed_params:
149 for p in func.variable_params:
154 for p in func.variable_params:
167 def print_async_unmarshal(self, func): argument
170 'const struct marshal_cmd_{0} *cmd)').format(func.name))
173 for p in func.fixed_params:
188 if func.variable_params:
189 for p in func.variable_params:
193 for p in func.variable_params:
207 self.print_sync_call(func)
210 def validate_count_or_fallback(self, func): argument
214 for p in func.parameters:
224 def print_async_marshal(self, func): argument
228 func.name, func.get_parameter_string()))
232 struct = 'struct marshal_cmd_{0}'.format(func.name)
234 for p in func.variable_params:
242 out('debug_print_marshal("{0}");'.format(func.name))
244 need_fallback_sync = self.validate_count_or_fallback(func)
246 if func.marshal_fail:
247 out('if ({0}) {{'.format(func.marshal_fail))
251 self.print_sync_dispatch(func)
257 self.print_async_dispatch(func)
266 self.print_sync_dispatch(func)
270 def print_async_body(self, func): argument
271 out('/* {0}: marshalled asynchronously */'.format(func.name))
272 self.print_async_struct(func)
273 self.print_async_unmarshal(func)
274 self.print_async_marshal(func)
286 for func in api.functionIterateAll():
287 flavor = func.marshal_flavor()
290 out('case DISPATCH_CMD_{0}:'.format(func.name))
292 out('debug_print_unmarshal("{0}");'.format(func.name))
294 ' cmd);').format(func.name))
319 for func in api.functionIterateAll():
320 if func.marshal_flavor() == 'skip':
322 out('SET_{0}(table, _mesa_marshal_{0});'.format(func.name))
331 for func in api.functionIterateAll():
332 flavor = func.marshal_flavor()
336 self.print_async_body(func)
337 async_funcs.append(func)
339 self.print_sync_body(func)