scons: use python3-compatible generator
authorEric Engestrom <eric.engestrom@imgtec.com>
Tue, 19 Sep 2017 13:21:44 +0000 (14:21 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Mon, 25 Sep 2017 11:05:47 +0000 (12:05 +0100)
These changes were generated using python's `2to3` tool.

Suggested-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/gallium/drivers/swr/SConscript

index fdced66463c912048e043dbec9b0f3f1591cdb62..e35eff79a8639cd9d5625ce0da29f70e3264233b 100644 (file)
@@ -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',