diff options
author | Tim Rowley <[email protected]> | 2017-02-15 13:45:16 -0800 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-03-20 18:04:53 -0500 |
commit | d2759c1eb3b77e9d86c52f2f8e6471a8f339228d (patch) | |
tree | 38793cbf1e9ca417ab5ac5a2b424363994c07641 /src/gallium/drivers/swr/Makefile.am | |
parent | 2c820d22cf703692b5de66289a0c81d7555aa9d6 (diff) |
swr: [rasterizer core/scripts] Autogen backend initialization function(s)
Autogen functions that instantiates different BackendPixelRate templates.
Functions get split into separate files after reaching a user defined
threshold (currently 512 per file) to speed up compilation.
This change will enable the addition of more template flags in the pixel
back end.
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/Makefile.am')
-rw-r--r-- | src/gallium/drivers/swr/Makefile.am | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/gallium/drivers/swr/Makefile.am b/src/gallium/drivers/swr/Makefile.am index b22ded0a191..c67eadc05df 100644 --- a/src/gallium/drivers/swr/Makefile.am +++ b/src/gallium/drivers/swr/Makefile.am @@ -61,7 +61,8 @@ BUILT_SOURCES = \ rasterizer/archrast/gen_ar_event.h \ rasterizer/archrast/gen_ar_event.cpp \ rasterizer/archrast/gen_ar_eventhandler.h \ - rasterizer/archrast/gen_ar_eventhandlerfile.h + rasterizer/archrast/gen_ar_eventhandlerfile.h \ + rasterizer/core/BackendPixelRate0.cpp MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D) PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS) @@ -156,6 +157,21 @@ rasterizer/archrast/gen_ar_eventhandlerfile.h: rasterizer/scripts/gen_archrast.p --output rasterizer/archrast/gen_ar_eventhandlerfile.h \ --gen_eventhandlerfile_h +# 5 SWR_MULTISAMPLE_TYPE_COUNT +# 2 SWR_MSAA_SAMPLE_PATTERN_COUNT +# 3 SWR_INPUT_COVERAGE_COUNT +# 2 centroid +# 2 forcedSampleCount +# 2 canEarlyZ +rasterizer/core/BackendPixelRate0.cpp: rasterizer/scripts/gen_backends.py rasterizer/scripts/templates/backend_template.cpp + $(MKDIR_GEN) + $(PYTHON_GEN) \ + $(srcdir)/rasterizer/scripts/gen_backends.py \ + --outdir rasterizer/core \ + --dim 5 2 3 2 2 2 \ + --split 0 \ + --cpp + COMMON_LIBADD = \ $(top_builddir)/src/gallium/auxiliary/libgallium.la \ $(top_builddir)/src/mesa/libmesagallium.la \ @@ -250,6 +266,7 @@ EXTRA_DIST = \ rasterizer/jitter/scripts/gen_llvm_ir_macros.py \ rasterizer/jitter/scripts/gen_llvm_types.py \ rasterizer/scripts/gen_archrast.py \ + rasterizer/scripts/gen_backends.py \ rasterizer/scripts/gen_knobs.py \ rasterizer/scripts/knob_defs.py \ rasterizer/scripts/mako/ast.py \ @@ -273,4 +290,5 @@ EXTRA_DIST = \ rasterizer/scripts/templates/ar_event_h.template \ rasterizer/scripts/templates/ar_event_cpp.template \ rasterizer/scripts/templates/ar_eventhandler_h.template \ - rasterizer/scripts/templates/ar_eventhandlerfile_h.template + rasterizer/scripts/templates/ar_eventhandlerfile_h.template \ + rasterizer/scripts/templates/backend_template.cpp |