radv/aco: return a correct name and description for the backend IR
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
@@ -5244,8 +5244,13 @@ VkResult radv_GetPipelineExecutableInternalRepresentationsKHR(
|
|||||||
/* LLVM IR */
|
/* LLVM IR */
|
||||||
if (p < end) {
|
if (p < end) {
|
||||||
p->isText = true;
|
p->isText = true;
|
||||||
desc_copy(p->name, "LLVM IR");
|
if (shader->aco_used) {
|
||||||
desc_copy(p->description, "The LLVM IR after some optimizations");
|
desc_copy(p->name, "ACO IR");
|
||||||
|
desc_copy(p->description, "The ACO IR after some optimizations");
|
||||||
|
} else {
|
||||||
|
desc_copy(p->name, "LLVM IR");
|
||||||
|
desc_copy(p->description, "The LLVM IR after some optimizations");
|
||||||
|
}
|
||||||
if (radv_copy_representation(p->pData, &p->dataSize, shader->llvm_ir_string) != VK_SUCCESS)
|
if (radv_copy_representation(p->pData, &p->dataSize, shader->llvm_ir_string) != VK_SUCCESS)
|
||||||
result = VK_INCOMPLETE;
|
result = VK_INCOMPLETE;
|
||||||
}
|
}
|
||||||
|
@@ -1160,6 +1160,7 @@ shader_variant_compile(struct radv_device *device,
|
|||||||
free(binary);
|
free(binary);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
variant->aco_used = use_aco;
|
||||||
|
|
||||||
if (options->dump_shader) {
|
if (options->dump_shader) {
|
||||||
fprintf(stderr, "disasm:\n%s\n", variant->disasm_string);
|
fprintf(stderr, "disasm:\n%s\n", variant->disasm_string);
|
||||||
|
@@ -360,6 +360,7 @@ struct radv_shader_variant {
|
|||||||
struct radv_shader_info info;
|
struct radv_shader_info info;
|
||||||
|
|
||||||
/* debug only */
|
/* debug only */
|
||||||
|
bool aco_used;
|
||||||
uint32_t *spirv;
|
uint32_t *spirv;
|
||||||
uint32_t spirv_size;
|
uint32_t spirv_size;
|
||||||
char *nir_string;
|
char *nir_string;
|
||||||
|
Reference in New Issue
Block a user