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>
This commit is contained in:
Marek Olšák 2020-10-10 07:18:45 -04:00
parent 071fd55381
commit ebcca77d4b

View file

@ -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)