OSDN Git Service

nir: add new linking opt nir_link_constant_varyings()
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 8 Nov 2018 22:24:11 +0000 (09:24 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sat, 10 Nov 2018 00:41:00 +0000 (11:41 +1100)
commitd40dd05553e548b648c77394424b59cc0abca199
tree9a5703d22789d0f9c82599af95edaf8d7b149ec4
parent414470854d40934f90f4ed12dc3a687d187d4770
nir: add new linking opt nir_link_constant_varyings()

This pass moves constant outputs to the consuming shader stage
where possible.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/nir/nir.h
src/compiler/nir/nir_linking_helpers.c