mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
anv: Fix missing Perfetto trace for as build
The as_build and related functions only appear when MESA_GPU_TRACES= perfetto is set. By default, when running an RT workload for profiling, these traces should be recorded alongside other trace points. This commit ensures that acceleration structure build events are properly captured when running an RT workload. v2(Michael Cheng): Move this logic up to anv_device_init_accel_struct_build_state v3(Michael Cheng): Set emit_markers = true and let the generated functions handle the check for u_trace_enable and intel_gpu_tracepoint Signed-off-by: Michael Cheng <michael.cheng@intel.com> Reviewed-by: Casey Bowman <casey.g.bowman@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33461>
This commit is contained in:
parent
441252e9e1
commit
873ad6b6d5
1 changed files with 1 additions and 1 deletions
|
|
@ -620,7 +620,7 @@ anv_device_init_accel_struct_build_state(struct anv_device *device)
|
|||
|
||||
device->accel_struct_build.build_args =
|
||||
(struct vk_acceleration_structure_build_args) {
|
||||
.emit_markers = u_trace_enabled(&device->ds.trace_context),
|
||||
.emit_markers = true,
|
||||
.subgroup_size = device->info->ver >= 20 ? 16 : 8,
|
||||
.radix_sort = device->accel_struct_build.radix_sort,
|
||||
/* See struct anv_accel_struct_header from anv_bvh.h
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue