anv: fix broken utrace
The non-compute end flag should be INTEL_DS_TRACEPOINT_FLAG_END_OF_PIPE.
This fixes the broken anv utrace for anything non-compute that can
potentially overlap (execute in parallel).
Fixes: 6281b207db ("anv: add tracepoints timestamp mode for empty dispatches")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37155>
This commit is contained in:
@@ -358,7 +358,7 @@ anv_utrace_record_ts(struct u_trace *ut, void *cs,
|
||||
ANV_TIMESTAMP_REWRITE_COMPUTE_WALKER) :
|
||||
ANV_TIMESTAMP_CAPTURE_END_OF_PIPE;
|
||||
} else {
|
||||
capture_type = (flags & INTEL_DS_TRACEPOINT_FLAG_END_CS) ?
|
||||
capture_type = (flags & INTEL_DS_TRACEPOINT_FLAG_END_OF_PIPE) ?
|
||||
ANV_TIMESTAMP_CAPTURE_END_OF_PIPE :
|
||||
ANV_TIMESTAMP_CAPTURE_TOP_OF_PIPE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user