diff options
author | Tim Rowley <[email protected]> | 2017-02-15 13:45:16 -0800 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-03-20 18:04:53 -0500 |
commit | d2759c1eb3b77e9d86c52f2f8e6471a8f339228d (patch) | |
tree | 38793cbf1e9ca417ab5ac5a2b424363994c07641 /src/gallium/drivers/swr/SConscript | |
parent | 2c820d22cf703692b5de66289a0c81d7555aa9d6 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/SConscript')
-rw-r--r-- | src/gallium/drivers/swr/SConscript | 13 |
1 files changed, 13 insertions, 0 deletions
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 |