diff options
author | Eric Engestrom <[email protected]> | 2017-09-19 14:21:44 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-09-25 12:05:47 +0100 |
commit | eb2efbba78ea503c45f1228745cd51219c084a92 (patch) | |
tree | e71a6a942d00b1a5e2d50cf2334e5e5eec1231f6 /src/gallium/drivers/swr | |
parent | e3610475683584a3b3e1e5a3e0435f0678ccd1f7 (diff) |
scons: use python3-compatible generator
These changes were generated using python's `2to3` tool.
Suggested-by: Ilia Mirkin <[email protected]>
Signed-off-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r-- | src/gallium/drivers/swr/SConscript | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/swr/SConscript b/src/gallium/drivers/swr/SConscript index fdced66463c..e35eff79a86 100644 --- a/src/gallium/drivers/swr/SConscript +++ b/src/gallium/drivers/swr/SConscript @@ -136,8 +136,7 @@ Depends('rasterizer/jitter/gen_state_llvm.h', # 2 canEarlyZ backendPixelRateFileCount = 4 backendPixelRateFilePat = "rasterizer/core/backends/gen_BackendPixelRate%s.cpp" -backendPixelRateFiles = map(lambda x: backendPixelRateFilePat % x, - range(0, backendPixelRateFileCount)) +backendPixelRateFiles = list(backendPixelRateFilePat % x for x in range(0, backendPixelRateFileCount)) env.CodeGenerate( target = 'rasterizer/core/backends/gen_BackendPixelRate.hpp', script = swrroot + 'rasterizer/codegen/gen_backends.py', @@ -158,8 +157,7 @@ Depends(backendPixelRateFiles, # 2 RasterScissorEdges genRasterizerFileCount = 4 genRasterizerFilePat = "rasterizer/core/backends/gen_rasterizer%s.cpp" -genRasterizerFiles = map(lambda x: genRasterizerFilePat % x, - range(0, genRasterizerFileCount)) +genRasterizerFiles = list(genRasterizerFilePat % x for x in range(0, genRasterizerFileCount)) env.CodeGenerate( target = 'rasterizer/core/backends/gen_rasterizer.hpp', script = swrroot + 'rasterizer/codegen/gen_backends.py', |