Skip to content

Commit ed620bc

Browse files
michaelonchromeMarge Bot
authored and
Marge Bot
committed
anv : Add tracepoint for as_build
Signed-off-by: Michael Cheng <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31588>
1 parent 5098c0c commit ed620bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/intel/vulkan/genX_acceleration_structure.c

+3
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,8 @@ genX(CmdBuildAccelerationStructuresKHR)(
640640
const VkAccelerationStructureBuildRangeInfoKHR* const* ppBuildRangeInfos)
641641
{
642642
ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
643+
trace_intel_begin_as_build(&cmd_buffer->trace);
644+
643645
struct anv_device *device = cmd_buffer->device;
644646

645647
VkResult result = anv_device_init_accel_struct_build_state(device);
@@ -660,6 +662,7 @@ genX(CmdBuildAccelerationStructuresKHR)(
660662
&device->accel_struct_build.build_args);
661663

662664
anv_cmd_buffer_restore_state(cmd_buffer, &saved);
665+
trace_intel_end_as_build(&cmd_buffer->trace);
663666
}
664667

665668
void

0 commit comments

Comments
 (0)