mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-21 03:10:35 +01:00
intel/ds: disable draw/blorp tracepoints by default on android
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Tim Van Patten <timvp@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37740>
This commit is contained in:
parent
c4061b96f0
commit
bb5eb9a096
2 changed files with 11 additions and 2 deletions
|
|
@ -86,7 +86,8 @@ def define_tracepoints(args):
|
|||
need_cs_param=need_cs_param)
|
||||
|
||||
def draw_tp(name, tp_args=[]):
|
||||
begin_end_tp(name, tp_args=tp_args, toggle_name='draw')
|
||||
begin_end_tp(name, tp_args=tp_args, toggle_name='draw',
|
||||
tp_default_enabled=not args.android)
|
||||
|
||||
# Frame tracepoints
|
||||
begin_end_tp('frame',
|
||||
|
|
@ -143,7 +144,8 @@ def define_tracepoints(args):
|
|||
Arg(type='enum isl_format', var='dst_fmt', c_format='%s', to_prim_type='isl_format_get_short_name({})'),
|
||||
Arg(type='enum isl_format', var='src_fmt', c_format='%s', to_prim_type='isl_format_get_short_name({})'),
|
||||
Arg(type='uint8_t', var='predicated', c_format='%hhu'),
|
||||
])
|
||||
],
|
||||
tp_default_enabled=not args.android)
|
||||
|
||||
# vkCmdWriteBufferMarker*, only for Anv
|
||||
begin_end_tp('write_buffer_marker',
|
||||
|
|
@ -339,6 +341,7 @@ def main():
|
|||
parser.add_argument('--utrace-src', required=True)
|
||||
parser.add_argument('--utrace-hdr', required=True)
|
||||
parser.add_argument('--perfetto-hdr', required=True)
|
||||
parser.add_argument('--android', action="store_true")
|
||||
args = parser.parse_args()
|
||||
sys.path.insert(0, args.import_path)
|
||||
define_tracepoints(args)
|
||||
|
|
|
|||
|
|
@ -2,6 +2,11 @@
|
|||
# Author: Antonio Caggiano <antonio.caggiano@collabora.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
intel_tracepoint_android_opts = []
|
||||
if with_platform_android
|
||||
intel_tracepoint_android_opts += '--android'
|
||||
endif
|
||||
|
||||
intel_tracepoint_files = custom_target(
|
||||
'intel_tracepoints.[ch]',
|
||||
input : 'intel_tracepoints.py',
|
||||
|
|
@ -14,6 +19,7 @@ intel_tracepoint_files = custom_target(
|
|||
'--utrace-hdr', '@OUTPUT0@',
|
||||
'--perfetto-hdr', '@OUTPUT1@',
|
||||
'--utrace-src', '@OUTPUT2@',
|
||||
intel_tracepoint_android_opts,
|
||||
],
|
||||
depend_files : u_trace_py,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue