Mesa (main): radeonsi: print source_sha1 as part of shader dumps
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Nov 26 13:07:22 UTC 2021
Module: Mesa
Branch: main
Commit: 59926f25fab691d9d2a1247fd27389dd254db048
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=59926f25fab691d9d2a1247fd27389dd254db048
Author: Marek Olšák <marek.olsak at amd.com>
Date: Thu Nov 18 09:36:11 2021 -0500
radeonsi: print source_sha1 as part of shader dumps
It's not part of the shader key, but I don't know where else to put it.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13869>
---
src/gallium/drivers/radeonsi/si_shader.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 7ebc3831b33..29827bce593 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -32,6 +32,7 @@
#include "tgsi/tgsi_from_mesa.h"
#include "tgsi/tgsi_strings.h"
#include "util/u_memory.h"
+#include "util/mesa-sha1.h"
static const char scratch_rsrc_dword0_symbol[] = "SCRATCH_RSRC_DWORD0";
@@ -1178,6 +1179,9 @@ static void si_dump_shader_key(const struct si_shader *shader, FILE *f)
gl_shader_stage stage = shader->selector->info.stage;
fprintf(f, "SHADER KEY\n");
+ fprintf(f, " source_sha1 = {");
+ _mesa_sha1_print(f, shader->selector->info.base.source_sha1);
+ fprintf(f, "}\n");
switch (stage) {
case MESA_SHADER_VERTEX:
More information about the mesa-commit
mailing list