summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
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/vulkan
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/vulkan')
-rw-r--r--src/amd/vulkan/radv_shader.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index c213b83557a..b9e83c911af 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -1092,7 +1092,6 @@ shader_variant_compile(struct radv_device *device,
{
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;
@@ -1116,11 +1115,7 @@ shader_variant_compile(struct radv_device *device,
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) {