intel/tools: Do not print type/qualifiers/name for c_literal
authorMatt Turner <mattst88@gmail.com>
Tue, 25 Feb 2020 21:15:29 +0000 (13:15 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 25 Feb 2020 22:23:38 +0000 (22:23 +0000)
External tools may wish to choose their own type, qualifiers, and name,
so do not emit our own.

Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3952>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3952>

src/intel/tools/i965_asm.c

index 9fb0cdce0ccd6acecc5cff0382ac3ea7488940fb..1e6e0904b50b8642c8945157a54b4c02e0bb131b 100644 (file)
@@ -239,7 +239,7 @@ int main(int argc, char **argv)
    }
 
    if (output_type == OPT_OUTPUT_C_LITERAL)
-      fprintf(output, "static const char gen_eu_bytes[] = {\n");
+      fprintf(output, "{\n");
 
    brw_validate_instructions(p->devinfo, p->store, 0,
                              p->next_insn_offset, disasm_info);