• Home
  • Raw
  • Download

Lines Matching refs:cmd_name

1607 def is_aliasing_excepted(api, cmd_name):  argument
1611 cmd_name = cmd_name[2:] if cmd_name.startswith('gl') else cmd_name
1612 cmd_name = cmd_name[0].lower() + cmd_name[1:]
1613 return api == apis.GLES and cmd_name in ALIASING_EXCEPTIONS
1627 def is_lockless_egl_entry_point(cmd_name): argument
1628 if cmd_name in [
1636 def is_egl_sync_entry_point(cmd_name): argument
1637 if cmd_name in [
1649 def is_egl_entry_point_accessing_both_sync_and_non_sync_API_resources(cmd_name): argument
1650 if cmd_name in ["eglTerminate", "eglLabelObjectKHR", "eglReleaseThread", "eglInitialize"]:
1655 def get_validation_expression(api, cmd_name, entry_point_name, internal_params, is_gles1): argument
1656 name = strip_api_prefix(cmd_name)
1659 cmd_name) else ["context"]
1697 def format_entry_point_decl(api, cmd_name, proto, params): argument
1699 stripped = strip_api_prefix(cmd_name)
1704 return_type=proto[:-len(cmd_name)].strip(),
1825 def is_context_lost_acceptable_cmd(cmd_name): argument
1836 if cmd_name.startswith(context_lost_entry_pont):
1841 def get_context_getter_function(cmd_name): argument
1842 if is_context_lost_acceptable_cmd(cmd_name):
1848 def get_valid_context_check(cmd_name): argument
1852 def get_constext_lost_error_generator(cmd_name): argument
1854 if is_context_lost_acceptable_cmd(cmd_name):
1888 def get_packed_enums(api, cmd_packed_gl_enums, cmd_name, packed_param_types, params): argument
1890 result = cmd_packed_gl_enums.get(strip_suffix_always(api, cmd_name), {})
1898 def get_def_template(api, cmd_name, return_type, has_errcode_ret): argument
1901 if is_lockless_egl_entry_point(cmd_name):
1907 elif is_context_private_state_command(api, cmd_name):
1915 if is_lockless_egl_entry_point(cmd_name):
1924 elif is_context_private_state_command(api, cmd_name):
1930 def format_entry_point_def(api, command_node, cmd_name, proto, params, cmd_packed_enums, argument
1932 packed_enums = get_packed_enums(api, cmd_packed_enums, cmd_name, packed_param_types, params)
1972 return_type = proto[:-len(cmd_name)].strip()
1973 initialization = "InitBackEnds(%s);\n" % INIT_DICT[cmd_name] if cmd_name in INIT_DICT else ""
1974 event_comment = TEMPLATE_EVENT_COMMENT if cmd_name in NO_EVENT_MARKER_EXCEPTIONS_LIST else ""
1975 name_no_suffix = strip_suffix(api, cmd_name[2:])
1977 entry_point_name = "angle::EntryPoint::GL" + strip_api_prefix(cmd_name)
1981 strip_api_prefix(cmd_name),
2015 get_validation_expression(api, cmd_name, entry_point_name, internal_params, is_gles1),
2019 get_context_getter_function(cmd_name),
2021 get_valid_context_check(cmd_name),
2023 get_constext_lost_error_generator(cmd_name),
2027 get_egl_entry_point_labeled_object(ep_to_object, cmd_name, params, packed_enums),
2029 get_context_lock(api, cmd_name),
2031 get_implicit_pls_disable(cmd_name),
2033 get_preamble(api, cmd_name, params),
2035 get_epilog(api, cmd_name),
2037 get_egl_lock(cmd_name),
2040 template = get_def_template(api, cmd_name, return_type, has_errcode_ret)
2088 def format_capture_method(api, command, cmd_name, proto, params, all_param_types, argument
2095 packed_gl_enums = get_packed_enums(api, cmd_packed_gl_enums, cmd_name, packed_param_types,
2099 api, cmd_name,
2125 capture_name = "Capture%s_%s" % (strip_api_prefix(cmd_name), param_name)
2149 if cmd_name not in CAPTURE_BLOCKLIST:
2153 return_type = proto[:-len(cmd_name)].strip()
2157 if cmd_name in CAPTURE_BLOCKLIST and api != apis.CL:
2164 "full_name": cmd_name,
2165 "short_name": strip_api_prefix(cmd_name),
2173 if return_type == "void" or cmd_name in CAPTURE_BLOCKLIST:
2191 def get_internal_params(api, cmd_name, params, cmd_packed_gl_enums, packed_param_types): argument
2192 packed_gl_enums = get_packed_enums(api, cmd_packed_gl_enums, cmd_name, packed_param_types,
2201 def get_validation_params(api, cmd_name, params, cmd_packed_gl_enums, packed_param_types): argument
2202 packed_gl_enums = get_packed_enums(api, cmd_packed_gl_enums, cmd_name, packed_param_types,
2212 def get_context_private_call_params(api, cmd_name, params, cmd_packed_gl_enums, argument
2214 packed_gl_enums = get_packed_enums(api, cmd_packed_gl_enums, cmd_name, packed_param_types,
2223 def get_context_lock_params(api, cmd_name, params, cmd_packed_gl_enums, packed_param_types): argument
2224 packed_gl_enums = get_packed_enums(api, cmd_packed_gl_enums, cmd_name, packed_param_types,
2236 def format_context_decl(api, cmd_name, proto, params, template, cmd_packed_gl_enums, argument
2238 internal_params = get_internal_params(api, cmd_name, params, cmd_packed_gl_enums,
2241 return_type = proto[:-len(cmd_name)].strip()
2242 name_lower_no_suffix = cmd_name[2:3].lower() + cmd_name[3:]
2254 def format_entry_point_export(cmd_name, proto, params, template): argument
2256 return_type = proto[:-len(cmd_name)].strip()
2259 name=strip_api_prefix(cmd_name),
2265 def format_validation_proto(api, cmd_name, params, cmd_packed_gl_enums, packed_param_types): argument
2273 api, cmd_name) else ["Context *context"]
2279 internal_params = get_validation_params(api, cmd_name, with_extra_params, cmd_packed_gl_enums,
2281 return TEMPLATE_VALIDATION_PROTO % (return_type, strip_api_prefix(cmd_name), internal_params)
2284 def format_context_private_call_proto(api, cmd_name, proto, params, cmd_packed_gl_enums, argument
2288 packed_enums = get_packed_enums(api, cmd_packed_gl_enums, cmd_name, packed_param_types,
2290 internal_params = get_context_private_call_params(api, cmd_name, with_extra_params,
2292 stripped_name = strip_suffix(api, strip_api_prefix(cmd_name))
2293 return_type = proto[:-len(cmd_name)].strip()
2298 def format_context_lock_proto(api, cmd_name, params, cmd_packed_gl_enums, packed_param_types): argument
2300 internal_params = get_context_lock_params(api, cmd_name, with_extra_params,
2302 return TEMPLATE_CONTEXT_LOCK_PROTO % (strip_api_prefix(cmd_name), internal_params)
2305 def format_capture_proto(api, cmd_name, proto, params, cmd_packed_gl_enums, packed_param_types): argument
2309 api, cmd_name,
2312 return_type = proto[:-len(cmd_name)].strip()
2315 return TEMPLATE_CAPTURE_PROTO % (strip_api_prefix(cmd_name), internal_params)
2347 for (cmd_name, command_node, param_text, proto_text) in self.get_infos():
2348 self.decls.append(format_entry_point_decl(self.api, cmd_name, proto_text, param_text))
2350 format_entry_point_def(self.api, command_node, cmd_name, proto_text, param_text,
2355 format_entry_point_export(cmd_name, proto_text, param_text, export_template))
2358 format_validation_proto(self.api, cmd_name, param_text, cmd_packed_enums,
2361 if is_context_private_state_command(self.api, cmd_name):
2362 proto, function = format_context_private_call_proto(self.api, cmd_name, proto_text,
2370 format_context_lock_proto(api, cmd_name, param_text, cmd_packed_enums,
2374 format_capture_proto(self.api, cmd_name, proto_text, param_text, cmd_packed_enums,
2377 format_capture_method(self.api, command_node, cmd_name, proto_text, param_text,
2487 cmd_name = proto.find('name').text
2489 if cmd_name not in gles_commands:
2492 name_no_suffix = strip_suffix(api, cmd_name)
2498 if is_context_private_state_command(api, cmd_name):
2504 format_context_decl(api, cmd_name, proto_text, param_text, formatter,
2520 cmd_name = proto.find('name').text
2522 if cmd_name not in gles_commands:
2528 return_type = proto_text[:-len(cmd_name)]
2533 "name": cmd_name,
2534 "name_upper": cmd_name.upper(),
2999 def get_command_params_text(command_node, cmd_name): argument
3194 def disable_share_group_lock(api, cmd_name): argument
3195 if cmd_name == 'glBindBuffer':
3200 if api == apis.GLES and cmd_name.startswith('glUniform'):
3210 return cmd_name not in keep_locked
3215 def get_context_lock(api, cmd_name): argument
3219 if api == apis.GLES and cmd_name.startswith("glEGLImage"):
3225 if disable_share_group_lock(api, cmd_name):
3231 def get_egl_lock(cmd_name): argument
3232 if is_egl_sync_entry_point(cmd_name):
3234 if is_egl_entry_point_accessing_both_sync_and_non_sync_API_resources(cmd_name):
3240 def get_prepare_swap_buffers_call(api, cmd_name, params): argument
3241 if cmd_name not in [
3262 if cmd_name in ["eglQuerySurface", "eglQuerySurface64KHR"]:
3268 def get_implicit_pls_disable(cmd_name): argument
3269 if not is_implicit_pls_disable_command(cmd_name):
3278 def get_preamble(api, cmd_name, params): argument
3280 preamble += get_prepare_swap_buffers_call(api, cmd_name, params)
3285 def get_unlocked_tail_call(api, cmd_name): argument
3316 if (cmd_name in [
3321 ] or cmd_name.startswith('glTexImage2D') or cmd_name.startswith('glTexImage3D') or
3322 cmd_name.startswith('glTexSubImage2D') or cmd_name.startswith('glTexSubImage3D') or
3323 cmd_name.startswith('glCompressedTexImage2D') or
3324 cmd_name.startswith('glCompressedTexImage3D') or
3325 cmd_name.startswith('glCompressedTexSubImage2D') or
3326 cmd_name.startswith('glCompressedTexSubImage3D')):
3329 if cmd_name in [
3352 def get_epilog(api, cmd_name): argument
3353 epilog = get_unlocked_tail_call(api, cmd_name)
3364 cmd_name = proto.find('name').text
3366 if cmd_name not in commands:
3376 return_type = proto_text[:-len(cmd_name)].strip()
3378 internal_params = get_internal_params(api, cmd_name, params, cmd_packed_egl_enums,
3380 stubs.append("%s %s(%s);" % (return_type, strip_api_prefix(cmd_name), internal_params))