Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
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;
{
enum radeon_family chip_family = device->physical_device->rad_info.family;
struct radv_shader_binary *binary = NULL;
- bool init_llvm;
options->family = chip_family;
options->chip_class = device->physical_device->rad_info.chip_class;
else
options->wave_size = device->physical_device->ge_wave_size;
- init_llvm = !use_aco || options->dump_shader;
-#ifndef NDEBUG
- init_llvm |= options->record_llvm_ir;
-#endif
- if (init_llvm)
+ if (!use_aco || options->dump_shader || options->record_llvm_ir)
ac_init_llvm_once();
if (use_aco) {