aco: disable disassembly for SI/CI due to lack of support by LLVM
authorDaniel Schürmann <daniel@schuermann.dev>
Fri, 15 Nov 2019 15:29:32 +0000 (16:29 +0100)
committerDaniel Schürmann <daniel@schuermann.dev>
Sat, 7 Dec 2019 10:23:11 +0000 (11:23 +0100)
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
src/amd/compiler/aco_print_asm.cpp

index 743824888d6b9c4faa55f9ddd3903fbc1877e0f4..4b0ce26994be5d4d703a78f6b61f22a7f3c0ed1e 100644 (file)
@@ -11,6 +11,10 @@ namespace aco {
 void print_asm(Program *program, std::vector<uint32_t>& binary,
                unsigned exec_size, std::ostream& out)
 {
+   if (program->chip_class <= GFX7) {
+      out << "Disassembly for this GPU currently not supported." << std::endl;
+      return;
+   }
    std::vector<bool> referenced_blocks(program->blocks.size());
    referenced_blocks[0] = true;
    for (Block& block : program->blocks) {