From: George Kyriazis Date: Fri, 27 Apr 2018 23:05:00 +0000 (-0500) Subject: swr/rast: Add ConcatLists() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db25fcfcdebe96d65f62692d4f0729dcee6ee2e0;p=mesa.git swr/rast: Add ConcatLists() for concatenating lists Reviewed-by: Bruce Cherniak --- 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=''): '''