Skip to content

Add (internal) MESA_query_timestamp extension to anv/radv

Keith Packard dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vulkan: Define new VK_MESA_query_timestamp extension [v2]include/vulkan/vk_mesa_query_timestamp.h src/vulkan/registry/vk.xml+56 -05 replies
2/3anv: Add new VK_MESA_query_timestamp extension to anv driver [v2]src/intel/vulkan/anv_extensions.py src/intel/vulkan/anv_gem.c src/intel/vulkan/anv_private.h +1 more+32 -00 replies
3/3radv: Add new VK_MESA_query_timestamp extension to radv driversrc/amd/vulkan/radv_device.c src/amd/vulkan/radv_extensions.py src/amd/vulkan/radv_private.h+10 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Add (internal) MESA_query_timestamp extension to anv/radv

This extension fetches the current GPU timestamp from the hardware, just like the OpenGL API glGetInteger64v(GL_TIMESTAMP, &timestamp) function.

I need this to correlate GPU and CPU timestamps for the GOOGLE_display_timing extension, but I think it will be useful for applications as well.

I'm not sure this is exactly the API we need for this; it might be better for it to return *two* timestamps, a GPU and a CPU one which were as closely correlated as possible down in the kernel.

The kernel APIs that this calls on anv and radv don't do that, so I didn't want to pretend to offer functionality I couldn't actually supply.

Suggestions on what to do here are welcome!

-keith

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev