swr: [rasterizer codegen] Refactor codegen
authorTim Rowley <timothy.o.rowley@intel.com>
Fri, 17 Mar 2017 17:39:15 +0000 (12:39 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Tue, 28 Mar 2017 16:23:04 +0000 (11:23 -0500)
commitfee3fc018b274af2913c2a9aa17e024b8eb293d0
treec80f7e40de0569e44b01ad95f2f2d4fd26e79149
parentcaa616ccc4384ea1479865e12b56cf816561a827
swr: [rasterizer codegen] Refactor codegen

Move common codegen functions into gen_common.py.

v2: change gen_knobs.py to find the template file internally, like
the rest of the gen scripts.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/Makefile.am
src/gallium/drivers/swr/rasterizer/codegen/gen_archrast.py
src/gallium/drivers/swr/rasterizer/codegen/gen_backends.py
src/gallium/drivers/swr/rasterizer/codegen/gen_common.py [new file with mode: 0644]
src/gallium/drivers/swr/rasterizer/codegen/gen_knobs.py
src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py
src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_types.py