From db25fcfcdebe96d65f62692d4f0729dcee6ee2e0 Mon Sep 17 00:00:00 2001 From: George Kyriazis Date: Fri, 27 Apr 2018 18:05:00 -0500 Subject: swr/rast: Add ConcatLists() for concatenating lists Reviewed-by: Bruce Cherniak --- src/gallium/drivers/swr/rasterizer/codegen/gen_common.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gallium/drivers') 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 @@ -31,6 +31,12 @@ import shutil 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=''): ''' -- cgit v1.2.3