Mesa (master): swr: [rasterizer codegen] add cmdline to archrast gen files
Tim Rowley
torowley at kemper.freedesktop.org
Tue Mar 28 16:39:43 UTC 2017
Module: Mesa
Branch: master
Commit: 89b83f4b1e8b51cc23f7a998b81b486cf39f8d86
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=89b83f4b1e8b51cc23f7a998b81b486cf39f8d86
Author: Tim Rowley <timothy.o.rowley at intel.com>
Date: Mon Mar 20 17:39:41 2017 -0500
swr: [rasterizer codegen] add cmdline to archrast gen files
Reviewed-by: George Kyriazis <george.kyriazis at intel.com>
---
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 efe42bb8db..06a3dea4ad 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 b743b2f3d2..d48fda61c2 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 68926ea805..e792f5f63e 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 cfed2aded0..87d0ef47ca 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 48ff0b0a95..3a618a124d 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
More information about the mesa-commit
mailing list