From 6bfce461647c141392ec1c293561a2c3ef678886 Mon Sep 17 00:00:00 2001
From: Konstantin Seurer <konstantin.seurer@gmail.com>
Date: Thu, 8 Jun 2023 20:06:00 +0200
Subject: [PATCH] report-fossil: Add all common stage names

This patch adds handling for all possible stage names returned by
_mesa_shader_stage_to_string.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
---
 report-fossil.py | 30 +++++++++++++++++-------------
 1 file changed, 17 insertions(+), 13 deletions(-)

diff --git a/report-fossil.py b/report-fossil.py
index 4a2016b..8144468 100755
--- a/report-fossil.py
+++ b/report-fossil.py
@@ -143,6 +143,23 @@ for n in range(8):
 
 
 executables = {
+    # common stage names
+    'vertex' : 'vs',
+    'tessellation control': 'tcs',
+    'tessellation evaluation': 'tes',
+    'geometry' : 'gs',
+    'fragment': 'fs',
+    'compute': 'cs',
+    'task': 'task',
+    'mesh': 'mesh',
+    'raygen' : 'rgen',
+    'any hit' : 'ahit',
+    'closest hit' : 'chit',
+    'miss' : 'miss',
+    'intersection' : 'intersection',
+    'callable' : 'callable',
+    'kernel': 'ks',
+
     # RADV executable names
     'Vertex Shader' : 'vs',
     'Vertex + Tessellation Control Shaders' : 'vs_tcs',
@@ -174,22 +191,9 @@ executables = {
     'CS (Render)' : 'cs',
 
     # Anv executable names
-    'vertex' : 'vs',
-    'geometry' : 'gs',
-    'tessellation control': 'tcs',
-    'tessellation evaluation': 'tes',
-    'mesh': 'mesh',
-    'task': 'task',
-    'kernel': 'ks',
     'SIMD8 fragment': 'fs.8',
     'SIMD16 fragment': 'fs.16',
     'SIMD32 fragment': 'fs.32',
-    'compute': 'cs',
-    'raygen' : 'rgen',
-    'any hit' : 'ahit',
-    'miss' : 'miss',
-    'closest hit' : 'chit',
-    'intersection' : 'intersection',
 }
 
 
-- 
GitLab