From d2759c1eb3b77e9d86c52f2f8e6471a8f339228d Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Wed, 15 Feb 2017 13:45:16 -0800 Subject: swr: [rasterizer core/scripts] Autogen backend initialization function(s) Autogen functions that instantiates different BackendPixelRate templates. Functions get split into separate files after reaching a user defined threshold (currently 512 per file) to speed up compilation. This change will enable the addition of more template flags in the pixel back end. Reviewed-by: Bruce Cherniak --- src/gallium/drivers/swr/SConscript | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/gallium/drivers/swr/SConscript') diff --git a/src/gallium/drivers/swr/SConscript b/src/gallium/drivers/swr/SConscript index c0677afc97f..dafeb9229d7 100644 --- a/src/gallium/drivers/swr/SConscript +++ b/src/gallium/drivers/swr/SConscript @@ -132,12 +132,25 @@ env.CodeGenerate( command = python_cmd + ' $SCRIPT --proto $SOURCE --output $TARGET --gen_eventhandlerfile_h' ) +# 5 SWR_MULTISAMPLE_TYPE_COUNT +# 2 SWR_MSAA_SAMPLE_PATTERN_COUNT +# 3 SWR_INPUT_COVERAGE_COUNT +# 2 centroid +# 2 forcedSampleCount +# 2 canEarlyZ +env.CodeGenerate( + target = 'rasterizer/core/BackendPixelRate0.cpp', + script = swrroot + 'rasterizer/scripts/gen_backends.py', + command = python_cmd + ' $SCRIPT --output rasterizer/core --dim 5 2 3 2 2 2 --split 0 --cpp' +) + # Auto-generated .cpp files (that need to generate object files) built_sources = [ 'rasterizer/scripts/gen_knobs.cpp', 'rasterizer/jitter/builder_gen.cpp', 'rasterizer/jitter/builder_x86.cpp', 'rasterizer/archrast/gen_ar_event.cpp', + 'rasterizer/core/BackendPixelRate0.cpp', ] source = built_sources -- cgit v1.2.3