mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 13:20:14 +01:00
aco: do not return an empty string when disassembly is not supported
Fixes dEQP-VK.pipeline.executable_properties.* on GFX6-7 when clrxdisasm isn't found. Other generations are also affected if RADV is built without LLVM. Cc: 21.3 mesa-stable Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Tony Wasserka <tony.wasserka@gmx.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13333>
This commit is contained in:
parent
5387522bd0
commit
aac4e1f822
1 changed files with 4 additions and 3 deletions
|
|
@ -213,11 +213,12 @@ aco_compile_shader(unsigned shader_count, struct nir_shader* const* shaders,
|
|||
size += disasm_size;
|
||||
free(data);
|
||||
} else {
|
||||
fprintf(stderr, "Shader disassembly is not supported in the current configuration"
|
||||
disasm = "Shader disassembly is not supported in the current configuration"
|
||||
#ifndef LLVM_AVAILABLE
|
||||
" (LLVM not available)"
|
||||
" (LLVM not available)"
|
||||
#endif
|
||||
".\n");
|
||||
".\n";
|
||||
size += disasm.length();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue