diff options
author | Tim Rowley <[email protected]> | 2017-06-26 13:00:27 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-06-30 13:26:19 -0500 |
commit | cae53b24d7a739647193711e9a16c7face7ec72a (patch) | |
tree | 2d70ab5c42624d507b10816187b116c1fc3470a0 /src/gallium/drivers/swr/SConscript | |
parent | b89bd3694c12f95a74af02e8095edcd631a05801 (diff) |
swr/rast: Split backend.cpp to improve compile time
Hardcode split to four files currently. Decreases swr build
time on a quad-core by ~10%.
Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com>
Diffstat (limited to 'src/gallium/drivers/swr/SConscript')
-rw-r--r-- | src/gallium/drivers/swr/SConscript | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/gallium/drivers/swr/SConscript b/src/gallium/drivers/swr/SConscript index cdb85e2cad4..0f3cd6c8aa3 100644 --- a/src/gallium/drivers/swr/SConscript +++ b/src/gallium/drivers/swr/SConscript @@ -140,12 +140,22 @@ Depends('rasterizer/jitter/gen_state_llvm.h', # 2 centroid # 2 forcedSampleCount # 2 canEarlyZ +backendPixelRateFileCount = 4 +backendPixelRateFilePat = "rasterizer/core/backends/gen_BackendPixelRate%s.cpp" +backendPixelRateFiles = map(lambda x: backendPixelRateFilePat % x, + range(0, backendPixelRateFileCount)) env.CodeGenerate( - target = 'rasterizer/core/gen_BackendPixelRate0.cpp', + target = 'rasterizer/core/backends/gen_BackendPixelRate.hpp', script = swrroot + 'rasterizer/codegen/gen_backends.py', source = '', - command = python_cmd + ' $SCRIPT --outdir ' + bldroot + '/rasterizer/core --dim 5 2 3 2 2 2 --split 0 --cpp' -) + command = python_cmd + ' $SCRIPT --outdir ' + bldroot + '/rasterizer/core/backends --dim 5 2 3 2 2 2 --numfiles ' + str(backendPixelRateFileCount) + ' --cpp --hpp' + ) +Depends(backendPixelRateFiles, + ['rasterizer/core/backends/gen_BackendPixelRate.hpp', + 'rasterizer/archrast/gen_ar_event.hpp', + 'rasterizer/codegen/gen_knobs.h'] + ) + Depends('rasterizer/jitter/gen_state_llvm.h', swrroot + 'rasterizer/codegen/templates/gen_backend.cpp') @@ -153,9 +163,10 @@ Depends('rasterizer/jitter/gen_state_llvm.h', built_sources = [ 'rasterizer/codegen/gen_knobs.cpp', 'rasterizer/archrast/gen_ar_event.cpp', - 'rasterizer/core/gen_BackendPixelRate0.cpp', ] +built_sources += backendPixelRateFiles + source = built_sources source += env.ParseSourceList(swrroot + 'Makefile.sources', [ 'CXX_SOURCES', |