From 79ce6c1b332c37329f658758660eb095ea9a58f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Sch=C3=BCrmann?= Date: Fri, 15 Nov 2019 16:29:32 +0100 Subject: [PATCH] aco: disable disassembly for SI/CI due to lack of support by LLVM Reviewed-by: Rhys Perry --- src/amd/compiler/aco_print_asm.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/amd/compiler/aco_print_asm.cpp b/src/amd/compiler/aco_print_asm.cpp index 743824888d6..4b0ce26994b 100644 --- a/src/amd/compiler/aco_print_asm.cpp +++ b/src/amd/compiler/aco_print_asm.cpp @@ -11,6 +11,10 @@ namespace aco { void print_asm(Program *program, std::vector& 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 referenced_blocks(program->blocks.size()); referenced_blocks[0] = true; for (Block& block : program->blocks) { -- 2.30.2