diff options
author | George Kyriazis <[email protected]> | 2018-04-27 18:05:00 -0500 |
---|---|---|
committer | George Kyriazis <[email protected]> | 2018-05-11 11:22:57 -0500 |
commit | db25fcfcdebe96d65f62692d4f0729dcee6ee2e0 (patch) | |
tree | 5fa81d50f1e5ca0950cab68fdc13015ddda679cb /src | |
parent | dcaca3c7b34f4b9c150860cde19c8f21d13bf51f (diff) |
swr/rast: Add ConcatLists()
for concatenating lists
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/codegen/gen_common.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/codegen/gen_common.py b/src/gallium/drivers/swr/rasterizer/codegen/gen_common.py index 44a0cc88e36..60b749d3abc 100644 --- a/src/gallium/drivers/swr/rasterizer/codegen/gen_common.py +++ b/src/gallium/drivers/swr/rasterizer/codegen/gen_common.py @@ -32,6 +32,12 @@ from mako.template import Template from mako.exceptions import RichTraceback #============================================================================== +def ConcatLists(list_of_lists): + output = [] + for l in list_of_lists: output += l + return output + +#============================================================================== def MakeTmpDir(suffix=''): ''' Create temporary directory for use in codegen scripts. |