nir: add linking helper nir_link_xfb_varyings()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 23 Oct 2018 10:56:29 +0000 (21:56 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 23 Oct 2018 21:21:29 +0000 (08:21 +1100)
commit7c694cbfa43388b7394142e5d75e1c0a0d2a8ca9
tree551c0a8b269f618b70c89dfa655663851ef33179
parent0a7664fe8c79580d3f1702ae1106c6824b3fbf2b
nir: add linking helper nir_link_xfb_varyings()

The linking opts shouldn't try removing or compacting XFB varyings
in the consumer. To avoid this we copy the always_active_io flag
from the producer.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_linking_helpers.c