radv/entrypoints: declare a driver internal layer for SQTT
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 26 Feb 2020 12:52:11 +0000 (13:52 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 10 Mar 2020 08:57:49 +0000 (09:57 +0100)
Some Vulkan commands will be overriden to emit user SQTT markers.
These markers are then used by the Radeon GPU Profiler to display
timings, barrier operations (cache flushes, pipeline stalls, layout
transitions) and more.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4031>

src/amd/vulkan/radv_entrypoints_gen.py

index b964a379338dc8d36c0a32f508cb91c233bb0f67..8b03b823e6cb3fb888312a8b9ebe4e0273eb8420 100644 (file)
@@ -38,10 +38,9 @@ from radv_extensions import *
 # function and a power-of-two size table. The prime numbers are determined
 # experimentally.
 
-# We currently don't use layers in radv, but keeping the ability for anv
-# anyways, so we can use it for device groups.
 LAYERS = [
-    'radv'
+    'radv',
+    'sqtt'
 ]
 
 TEMPLATE_H = Template("""\