Mesa (master): radv: add radv_dump_pipeline_state() helper

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Fri May 25 10:00:02 UTC 2018


Module: Mesa
Branch: master
Commit: de06dfa9ea05ab5d06efb20223a858eb42d02683
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=de06dfa9ea05ab5d06efb20223a858eb42d02683

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Thu May 24 13:09:13 2018 +0200

radv: add radv_dump_pipeline_state() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

 src/amd/vulkan/radv_debug.c | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c
index 5cdbf5bea9..c84e3be25b 100644
--- a/src/amd/vulkan/radv_debug.c
+++ b/src/amd/vulkan/radv_debug.c
@@ -526,6 +526,15 @@ radv_dump_shaders(struct radv_pipeline *pipeline,
 }
 
 static void
+radv_dump_pipeline_state(struct radv_pipeline *pipeline,
+			 VkShaderStageFlagBits active_stages, FILE *f)
+{
+	radv_dump_shaders(pipeline, active_stages, f);
+	radv_dump_annotated_shaders(pipeline, active_stages, f);
+	radv_dump_descriptors(pipeline, f);
+}
+
+static void
 radv_dump_graphics_state(struct radv_pipeline *graphics_pipeline,
 			 struct radv_pipeline *compute_pipeline, FILE *f)
 {
@@ -536,9 +545,7 @@ radv_dump_graphics_state(struct radv_pipeline *graphics_pipeline,
 
 	active_stages = graphics_pipeline->active_stages;
 
-	radv_dump_shaders(graphics_pipeline, active_stages, f);
-	radv_dump_annotated_shaders(graphics_pipeline, active_stages, f);
-	radv_dump_descriptors(graphics_pipeline, f);
+	radv_dump_pipeline_state(graphics_pipeline, active_stages, f);
 }
 
 static void
@@ -549,9 +556,7 @@ radv_dump_compute_state(struct radv_pipeline *compute_pipeline, FILE *f)
 	if (!compute_pipeline)
 		return;
 
-	radv_dump_shaders(compute_pipeline, active_stages, f);
-	radv_dump_annotated_shaders(compute_pipeline, active_stages, f);
-	radv_dump_descriptors(compute_pipeline, f);
+	radv_dump_pipeline_state(compute_pipeline, active_stages, f);
 }
 
 static struct radv_pipeline *




More information about the mesa-commit mailing list