OSDN Git Service

mesa/st/glsl_to_tgsi: Add helper class for array live range merging and interleaving
authorGert Wollny <gw.fossdev@gmail.com>
Tue, 5 Jun 2018 20:26:39 +0000 (22:26 +0200)
committerGert Wollny <gw.fossdev@gmail.com>
Sat, 11 Aug 2018 10:32:42 +0000 (12:32 +0200)
commitd54c2f92f93a811a853a7b8e87f016ccada04a91
treed132659317b67a238a32b90c49a9102b4cccc6bf
parent331ae3cde5fd6689cd00112fd365da0d00dc5e56
mesa/st/glsl_to_tgsi: Add helper class for array live range merging and interleaving

This class holds the array length, live range, and accessed components, and
it implements the logic for evaluating how arrays are merged and interleaved.

v4: - Add logic to evaluate merge and interleave of a pair of arrays to
      the class array_live_range.
    - document class
    - update commit message

Thanks Nicolai Hähnle for the pointers given.

Signed-off-by: Gert Wollny <gw.fossdev@gmail.com>
Acked-by: Dave Airlie <airlied@redhat.com>
src/mesa/Makefile.sources
src/mesa/meson.build
src/mesa/state_tracker/st_glsl_to_tgsi_array_merge.cpp [new file with mode: 0644]
src/mesa/state_tracker/st_glsl_to_tgsi_array_merge.h [new file with mode: 0644]