[Mesa-dev] [PATCH 03/10] swr: [rasterizer codegen] add cmdline to archrast gen files

Tim Rowley timothy.o.rowley at intel.com
Sat Mar 25 12:00:55 UTC 2017


---
 src/gallium/drivers/swr/rasterizer/codegen/gen_archrast.py           | 4 ++++
 .../drivers/swr/rasterizer/codegen/templates/gen_ar_event.cpp        | 3 +++
 .../drivers/swr/rasterizer/codegen/templates/gen_ar_event.hpp        | 3 +++
 .../drivers/swr/rasterizer/codegen/templates/gen_ar_eventhandler.hpp | 5 ++++-
 .../swr/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 efe42bb..06a3dea 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 b743b2f..d48fda6 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 68926ea..e792f5f 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 cfed2ad..87d0ef4 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 48ff0b0..3a618a1 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.7.4



More information about the mesa-dev mailing list