Mesa (master): intel/tools: Do not print type/qualifiers/name for c_literal

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Feb 25 22:49:22 UTC 2020


Module: Mesa
Branch: master
Commit: cb166aea24aff734f520f78c896255ec432f7f4e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb166aea24aff734f520f78c896255ec432f7f4e

Author: Matt Turner <mattst88 at gmail.com>
Date:   Tue Feb 25 13:15:29 2020 -0800

intel/tools: Do not print type/qualifiers/name for c_literal

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/tools/i965_asm.c b/src/intel/tools/i965_asm.c
index 9fb0cdce0cc..1e6e0904b50 100644
--- a/src/intel/tools/i965_asm.c
+++ b/src/intel/tools/i965_asm.c
@@ -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);



More information about the mesa-commit mailing list