spirv: add DO NOT EDIT warning on generated spirv_info.c
authorAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 13 Oct 2017 14:17:14 +0000 (16:17 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 13 Nov 2017 12:28:44 +0000 (13:28 +0100)
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/compiler/spirv/spirv_info_c.py

index c5e11dfc837c12ac897a338762a64ccc18173243..11235cfa3e416c85afceaf8bc12f6c2632819db0 100644 (file)
@@ -51,7 +51,10 @@ def parse_args():
     p.add_argument("out")
     return p.parse_args()
 
-TEMPLATE  = Template(COPYRIGHT + """\
+TEMPLATE  = Template("""\
+/* DO NOT EDIT - This file generated automatically by spirv_info_c.py script */
+
+""" + COPYRIGHT + """\
 #include "spirv_info.h"
 % for kind,values in info: