util/u_trace: Allow mixing of ArgStruct and Arg
Would allow to define such arguments:
args=[ArgStruct(type='const struct tu_framebuffer *', var='fb'),
ArgStruct(type='const struct tu_tiling_config *', var='tiling'),
Arg(type='uint8_t', var='maxSamples', c_format='%u'),
Arg(type='uint8_t', var='clearCPP', c_format='%u'),
Arg(type='uint8_t', var='loadCPP', c_format='%u'),
Arg(type='uint8_t', var='storeCPP', c_format='%u'),],
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Reviewed-by: Karmjit Mahil <karmjit.mahil@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29222>
This commit is contained in:
committed by
Marge Bot
parent
5f4a6b5b00
commit
57a3f0f949
@@ -60,6 +60,9 @@ class Tracepoint(object):
|
||||
self.args = args
|
||||
if tp_struct is None:
|
||||
tp_struct = args
|
||||
else:
|
||||
tp_struct += [x for x in args if isinstance(x, TracepointArg)]
|
||||
|
||||
self.tp_struct = tp_struct
|
||||
self.has_variable_arg = False
|
||||
for arg in self.tp_struct:
|
||||
|
||||
Reference in New Issue
Block a user