Module: Mesa Branch: master Commit: db25fcfcdebe96d65f62692d4f0729dcee6ee2e0 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=db25fcfcdebe96d65f62692d4f0729dcee6ee2e0
Author: George Kyriazis <[email protected]> Date: Fri Apr 27 18:05:00 2018 -0500 swr/rast: Add ConcatLists() for concatenating lists Reviewed-by: Bruce Cherniak <[email protected]> --- src/gallium/drivers/swr/rasterizer/codegen/gen_common.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/swr/rasterizer/codegen/gen_common.py b/src/gallium/drivers/swr/rasterizer/codegen/gen_common.py index 44a0cc88e3..60b749d3ab 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. _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
