From 89b83f4b1e8b51cc23f7a998b81b486cf39f8d86 Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Mon, 20 Mar 2017 17:39:41 -0500 Subject: [PATCH] swr: [rasterizer codegen] add cmdline to archrast gen files Reviewed-by: George Kyriazis --- src/gallium/drivers/swr/rasterizer/codegen/gen_archrast.py | 4 ++++ .../swr/rasterizer/codegen/templates/gen_ar_event.cpp | 3 +++ .../swr/rasterizer/codegen/templates/gen_ar_event.hpp | 3 +++ .../swr/rasterizer/codegen/templates/gen_ar_eventhandler.hpp | 5 ++++- .../rasterizer/codegen/templates/gen_ar_eventhandlerfile.hpp | 5 ++++- 5 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/swr/rasterizer/codegen/gen_archrast.py b/src/gallium/drivers/swr/rasterizer/codegen/gen_archrast.py index efe42bb8dbf..06a3dea4ad9 100644 --- a/src/gallium/drivers/swr/rasterizer/codegen/gen_archrast.py +++ b/src/gallium/drivers/swr/rasterizer/codegen/gen_archrast.py @@ -155,6 +155,7 @@ def main(): output_fullpath = os.sep.join([output_dir, output_filename]) MakoTemplateWriter.to_file(template_file, output_fullpath, + cmdline=sys.argv, filename=output_filename, protos=protos) @@ -165,6 +166,7 @@ def main(): output_fullpath = os.sep.join([output_dir, output_filename]) MakoTemplateWriter.to_file(template_file, output_fullpath, + cmdline=sys.argv, filename=output_filename, protos=protos) @@ -175,6 +177,7 @@ def main(): output_fullpath = os.sep.join([output_dir, output_filename]) MakoTemplateWriter.to_file(template_file, output_fullpath, + cmdline=sys.argv, filename=output_filename, event_header='gen_ar_event.hpp', protos=protos) @@ -186,6 +189,7 @@ def main(): output_fullpath = os.sep.join([output_dir, output_filename]) MakoTemplateWriter.to_file(template_file, output_fullpath, + cmdline=sys.argv, filename=output_filename, event_header='gen_ar_eventhandler.hpp', protos=protos) diff --git a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.cpp b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.cpp index b743b2f3d2d..d48fda61c2a 100644 --- a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.cpp +++ b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.cpp @@ -26,6 +26,9 @@ * * DO NOT EDIT * +* Generation Command Line: +* ${'\n* '.join(cmdline)} +* ******************************************************************************/ #include "common/os.h" #include "gen_ar_event.hpp" diff --git a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.hpp b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.hpp index 68926ea8053..e792f5f63e6 100644 --- a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.hpp +++ b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.hpp @@ -25,6 +25,9 @@ * @brief Definitions for events. auto-generated file * * DO NOT EDIT +* +* Generation Command Line: +* ${'\n* '.join(cmdline)} * ******************************************************************************/ #pragma once diff --git a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_eventhandler.hpp b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_eventhandler.hpp index cfed2aded0c..87d0ef47cab 100644 --- a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_eventhandler.hpp +++ b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_eventhandler.hpp @@ -25,7 +25,10 @@ * @brief Event handler interface. auto-generated file * * DO NOT EDIT -* +* +* Generation Command Line: +* ${'\n* '.join(cmdline)} +* ******************************************************************************/ #pragma once diff --git a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_eventhandlerfile.hpp b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_eventhandlerfile.hpp index 48ff0b0a958..3a618a124de 100644 --- a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_eventhandlerfile.hpp +++ b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_eventhandlerfile.hpp @@ -25,7 +25,10 @@ * @brief Event handler interface. auto-generated file * * DO NOT EDIT -* +* +* Generation Command Line: +* ${'\n* '.join(cmdline)} +* ******************************************************************************/ #pragma once -- 2.30.2