summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2017-03-15 11:58:10 -0500
committerTim Rowley <[email protected]>2017-03-20 18:05:54 -0500
commit5d0b3b05a28b2e236d3d8aa7b6335b0be4f02eda (patch)
treef4b7983d240fc02a8125197583334d8cadfb6cb8 /src/gallium/drivers/swr/rasterizer
parent4ed72758db74943dbc611ef45b180df9fb8f656c (diff)
swr: [rasterizer codegen] Fix generation of knobs
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer')
-rw-r--r--src/gallium/drivers/swr/rasterizer/codegen/gen_backends.py2
-rw-r--r--src/gallium/drivers/swr/rasterizer/codegen/gen_knobs.py2
-rw-r--r--src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py2
-rw-r--r--src/gallium/drivers/swr/rasterizer/codegen/templates/backend_template.cpp3
-rw-r--r--src/gallium/drivers/swr/rasterizer/codegen/templates/gen_builder_template.hpp3
-rw-r--r--src/gallium/drivers/swr/rasterizer/codegen/templates/knobs_template.cpp (renamed from src/gallium/drivers/swr/rasterizer/codegen/templates/knobs.template)5
6 files changed, 16 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/codegen/gen_backends.py b/src/gallium/drivers/swr/rasterizer/codegen/gen_backends.py
index d6367ca73f1..c889ea5816e 100644
--- a/src/gallium/drivers/swr/rasterizer/codegen/gen_backends.py
+++ b/src/gallium/drivers/swr/rasterizer/codegen/gen_backends.py
@@ -103,6 +103,7 @@ def main(args=sys.argv[1:]):
write_template_to_file(
templateCpp,
baseCppName % str(fileNum),
+ cmdline=sys.argv,
fileNum=fileNum,
funcList=chunkedList[fileNum])
@@ -114,6 +115,7 @@ def main(args=sys.argv[1:]):
write_template_to_file(
templateCmake,
cmakeFile,
+ cmdline=sys.argv,
numFiles=numFiles,
baseCppName=baseCppName.replace('\\','/'))
diff --git a/src/gallium/drivers/swr/rasterizer/codegen/gen_knobs.py b/src/gallium/drivers/swr/rasterizer/codegen/gen_knobs.py
index 225082e7882..50afdcdd10c 100644
--- a/src/gallium/drivers/swr/rasterizer/codegen/gen_knobs.py
+++ b/src/gallium/drivers/swr/rasterizer/codegen/gen_knobs.py
@@ -62,6 +62,7 @@ def main(args=sys.argv[1:]):
if args.gen_h:
write_template_to_file(args.input,
args.output,
+ cmdline=sys.argv,
filename='gen_knobs',
knobs=knob_defs.KNOBS,
includes=['core/knobs_init.h', 'common/os.h', 'sstream', 'iomanip'],
@@ -70,6 +71,7 @@ def main(args=sys.argv[1:]):
if args.gen_cpp:
write_template_to_file(args.input,
args.output,
+ cmdline=sys.argv,
filename='gen_knobs',
knobs=knob_defs.KNOBS,
includes=['core/knobs_init.h', 'common/os.h', 'sstream', 'iomanip'],
diff --git a/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py b/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py
index 202dadaeeab..cfd63942dc1 100644
--- a/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py
+++ b/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py
@@ -218,6 +218,7 @@ def generate_gen_h(functions, output_dir):
write_template_to_file(
template,
output_filename,
+ cmdline=sys.argv,
comment='Builder IR Wrappers',
filename=filename,
functions=templfuncs,
@@ -244,6 +245,7 @@ def generate_x86_h(output_dir):
write_template_to_file(
template,
output_filename,
+ cmdline=sys.argv,
comment='x86 intrinsics',
filename=filename,
functions=functions,
diff --git a/src/gallium/drivers/swr/rasterizer/codegen/templates/backend_template.cpp b/src/gallium/drivers/swr/rasterizer/codegen/templates/backend_template.cpp
index bb770fa7790..4eb4ad4f2b3 100644
--- a/src/gallium/drivers/swr/rasterizer/codegen/templates/backend_template.cpp
+++ b/src/gallium/drivers/swr/rasterizer/codegen/templates/backend_template.cpp
@@ -26,6 +26,9 @@
//
// DO NOT EDIT
//
+// Generation Command Line:
+// ${'\n// '.join(cmdline)}
+//
//============================================================================
#include "core/backend.h"
diff --git a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_builder_template.hpp b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_builder_template.hpp
index 6a56eb11573..2e957581ac4 100644
--- a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_builder_template.hpp
+++ b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_builder_template.hpp
@@ -26,6 +26,9 @@
//
// DO NOT EDIT
//
+// Generation Command Line:
+// ${'\n// '.join(cmdline)}
+//
//============================================================================
#pragma once
diff --git a/src/gallium/drivers/swr/rasterizer/codegen/templates/knobs.template b/src/gallium/drivers/swr/rasterizer/codegen/templates/knobs_template.cpp
index 1ae45e52e74..99294d2290e 100644
--- a/src/gallium/drivers/swr/rasterizer/codegen/templates/knobs.template
+++ b/src/gallium/drivers/swr/rasterizer/codegen/templates/knobs_template.cpp
@@ -24,7 +24,7 @@
%>/******************************************************************************
*
-* Copyright 2015-2016
+* Copyright 2015-2017
* Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -49,6 +49,9 @@
*
* ======================= AUTO GENERATED: DO NOT EDIT !!! ====================
*
+* Generation Command Line:
+* ${'\n* '.join(cmdline)}
+*
******************************************************************************/
%if gen_header:
#pragma once