[Mesa-dev] [PATCH] spirv: add DO NOT EDIT warning on generated spirv_info.c
Kenneth Graunke
kenneth at whitecape.org
Mon Nov 13 19:04:44 UTC 2017
On Monday, November 13, 2017 2:16:59 AM PST Alejandro PiƱeiro wrote:
> ---
> src/compiler/spirv/spirv_info_c.py | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/compiler/spirv/spirv_info_c.py b/src/compiler/spirv/spirv_info_c.py
> index c5e11dfc837..11235cfa3e4 100644
> --- a/src/compiler/spirv/spirv_info_c.py
> +++ b/src/compiler/spirv/spirv_info_c.py
> @@ -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 */
"is generated automatically"
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
> +
> +""" + COPYRIGHT + """\
> #include "spirv_info.h"
> % for kind,values in info:
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171113/1db9d803/attachment.sig>
More information about the mesa-dev
mailing list