aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/compiler
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2019-09-24 15:21:06 +0100
committerRhys Perry <[email protected]>2019-09-26 11:08:09 +0100
commit6613b813278bd8f31b777a33a945fd1ce86ede46 (patch)
treeebf85b49539277d052380fc974739ec5283649e2 /src/amd/compiler
parent0aef1a230e7f0f883296e25d965386b6b0859dcc (diff)
aco,radv/aco: get dissassembly for release builds if requested
Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/compiler')
-rw-r--r--src/amd/compiler/aco_interface.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/amd/compiler/aco_interface.cpp b/src/amd/compiler/aco_interface.cpp
index 6adb911e4b3..5a6556f8fad 100644
--- a/src/amd/compiler/aco_interface.cpp
+++ b/src/amd/compiler/aco_interface.cpp
@@ -125,10 +125,7 @@ void aco_compile_shader(unsigned shader_count,
std::vector<uint32_t> code;
unsigned exec_size = aco::emit_program(program.get(), code);
- bool get_disasm = options->dump_shader;
-#ifndef NDEBUG
- get_disasm |= options->record_llvm_ir;
-#endif
+ bool get_disasm = options->dump_shader || options->record_llvm_ir;
size_t size = 0;