[Mesa-dev] [PATCH 4/7] swr/rast: Add ConcatLists()

George Kyriazis george.kyriazis at intel.com
Fri May 4 18:40:56 UTC 2018


for concatenating lists
---
 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 44a0cc8..60b749d 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.
-- 
2.7.4



More information about the mesa-dev mailing list