aco,radv/aco: get dissassembly for release builds if requested
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:
parent
0aef1a230e
commit
6613b81327
|
@ -125,10 +125,7 @@ void aco_compile_shader(unsigned shader_count,
|
||||||
std::vector<uint32_t> code;
|
std::vector<uint32_t> code;
|
||||||
unsigned exec_size = aco::emit_program(program.get(), code);
|
unsigned exec_size = aco::emit_program(program.get(), code);
|
||||||
|
|
||||||
bool get_disasm = options->dump_shader;
|
bool get_disasm = options->dump_shader || options->record_llvm_ir;
|
||||||
#ifndef NDEBUG
|
|
||||||
get_disasm |= options->record_llvm_ir;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
|
|
||||||
|
|
|
@ -1092,7 +1092,6 @@ shader_variant_compile(struct radv_device *device,
|
||||||
{
|
{
|
||||||
enum radeon_family chip_family = device->physical_device->rad_info.family;
|
enum radeon_family chip_family = device->physical_device->rad_info.family;
|
||||||
struct radv_shader_binary *binary = NULL;
|
struct radv_shader_binary *binary = NULL;
|
||||||
bool init_llvm;
|
|
||||||
|
|
||||||
options->family = chip_family;
|
options->family = chip_family;
|
||||||
options->chip_class = device->physical_device->rad_info.chip_class;
|
options->chip_class = device->physical_device->rad_info.chip_class;
|
||||||
|
@ -1116,11 +1115,7 @@ shader_variant_compile(struct radv_device *device,
|
||||||
else
|
else
|
||||||
options->wave_size = device->physical_device->ge_wave_size;
|
options->wave_size = device->physical_device->ge_wave_size;
|
||||||
|
|
||||||
init_llvm = !use_aco || options->dump_shader;
|
if (!use_aco || options->dump_shader || options->record_llvm_ir)
|
||||||
#ifndef NDEBUG
|
|
||||||
init_llvm |= options->record_llvm_ir;
|
|
||||||
#endif
|
|
||||||
if (init_llvm)
|
|
||||||
ac_init_llvm_once();
|
ac_init_llvm_once();
|
||||||
|
|
||||||
if (use_aco) {
|
if (use_aco) {
|
||||||
|
|
Loading…
Reference in New Issue