[Mesa-dev] [PATCH] spirv: add DO NOT EDIT warning on generated spirv_info.c

Eric Engestrom eric.engestrom at imgtec.com
Mon Nov 13 11:50:19 UTC 2017


On Monday, 2017-11-13 11:16:59 +0100, Alejandro PiƱeiro wrote:
> ---

Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>

>  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 */
> +
> +""" + COPYRIGHT + """\
>  #include "spirv_info.h"
>  % for kind,values in info:
>  
> -- 
> 2.11.0
> 


More information about the mesa-dev mailing list