radv: Disable shader disassembly when no disassembler is available

ACO relies on LLVM to disassemble AMD shaders for ISAs newer than GFX7,
so disassembly needs to be skipped when LLVM is not enabled.

For vkGetPipelineExecutableInternalRepresentationsKHR and vkGetShaderInfoAMD,
the disassembly will not be reported anymore if it can't be generated.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11319>
This commit is contained in:
Tony Wasserka
2021-06-11 12:37:50 +02:00
parent d5ac15c0e4
commit 3c1802accd
5 changed files with 55 additions and 14 deletions

View File

@@ -6095,7 +6095,7 @@ radv_GetPipelineExecutableInternalRepresentationsKHR(
++p;
/* Disassembler */
if (p < end) {
if (p < end && shader->disasm_string) {
p->isText = true;
desc_copy(p->name, "Assembly");
desc_copy(p->description, "Final Assembly");