nir: add some helpers for doing linking
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 7 Sep 2017 13:27:59 +0000 (23:27 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 26 Sep 2017 12:37:02 +0000 (22:37 +1000)
commit45ef10c06a3010a0710f9db3e980fde545157b6a
treeb5d5e7321db61ba77960c19aa55d54beabad3da0
parent3529f8213ff566d788b7984536abf359fcd89524
nir: add some helpers for doing linking

The initial helpers add support for removing unused varyings between
stages.

V2:
- Moved the io mask helper function into this file rather than
  nir.h so it's not used elsewhere considering it doesn't handle
  all corner cases.
- Use bitmask rather than hash table to handle tcs outputs (Ken)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/Makefile.sources
src/compiler/nir/nir.h
src/compiler/nir/nir_linking_helpers.c [new file with mode: 0644]