summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2020-10-10 07:18:45 -0400
committerMarek Olšák <marek.olsak@amd.com>2020-12-01 15:33:02 -0500
commitebcca77d4badfb3b1eb4e8753a3b553126ff109d (patch)
tree8f790e78663b57d3316c5deeb729ab91e9587dc1
parent071fd55381598bac5fc6b98a9632c697d8df8939 (diff)
radeonsi: print more fields in si_dump_shader_key
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7721>
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index e361631af4e..58bf609779f 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -1297,10 +1297,19 @@ static void si_dump_shader_key(const struct si_shader *shader, FILE *f)
stage == MESA_SHADER_VERTEX) &&
!key->as_es && !key->as_ls) {
fprintf(f, " opt.kill_outputs = 0x%" PRIx64 "\n", key->opt.kill_outputs);
+ fprintf(f, " opt.kill_pointsize = 0x%x\n", key->opt.kill_pointsize);
fprintf(f, " opt.kill_clip_distances = 0x%x\n", key->opt.kill_clip_distances);
if (stage != MESA_SHADER_GEOMETRY)
fprintf(f, " opt.ngg_culling = 0x%x\n", key->opt.ngg_culling);
}
+
+ fprintf(f, " opt.prefer_mono = %u\n", key->opt.prefer_mono);
+ fprintf(f, " opt.inline_uniforms = %u (0x%x, 0x%x, 0x%x, 0x%x)\n",
+ key->opt.inline_uniforms,
+ key->opt.inlined_uniform_values[0],
+ key->opt.inlined_uniform_values[1],
+ key->opt.inlined_uniform_values[2],
+ key->opt.inlined_uniform_values[3]);
}
static void si_optimize_vs_outputs(struct si_shader_context *ctx)