radv: Use string for nir dumping.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Allows us to easily dump all nir shaders for combined variants in
vega and simplifies ownership.
This commit is contained in:
Bas Nieuwenhuizen
2019-06-01 20:54:35 +02:00
parent 739a2880f5
commit 5444d3e0c2
4 changed files with 29 additions and 8 deletions

View File

@@ -503,9 +503,8 @@ radv_dump_shader(struct radv_pipeline *pipeline,
radv_print_spirv(shader->spirv, shader->spirv_size, f);
}
if (shader->nir) {
fprintf(f, "NIR:\n");
nir_print_shader(shader->nir, f);
if (shader->nir_string) {
fprintf(f, "NIR:\n%s\n", shader->nir_string);
}
fprintf(f, "LLVM IR:\n%s\n", shader->llvm_ir_string);