glsl: only call dead code pass when new inputs/outputs demoted
authorTimothy Arceri <timothy.arceri@collabora.com>
Sat, 21 Nov 2015 08:02:01 +0000 (19:02 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 24 Nov 2015 22:50:13 +0000 (09:50 +1100)
commit7436d7c33b65f8f3875d908f08acb15c57f9bd08
treeff31f60c154f859fe4528f1a694614e654bca8ab
parent404ac4bf9e2e0ed388edc3553a6b9a31d59d7e03
glsl: only call dead code pass when new inputs/outputs demoted

This will help avoid eliminating inputs/outputs needed by SSOs.

Cc: Gregory Hainaut <gregory.hainaut@gmail.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
src/glsl/linker.cpp