glsl: replace unreachable code with an assert()
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 2 Feb 2016 22:39:10 +0000 (09:39 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Sat, 6 Feb 2016 03:34:35 +0000 (14:34 +1100)
commitc1bbaff1e83f901d67d78f9e1ddfe8291dd09bfa
treef0ae24d875ab9663b45492e2584c91d3dc32068c
parente377037bef521a985dc801371f195ada327ec304
glsl: replace unreachable code with an assert()

All interface blocks will have been lowered by this point so just
use an assert. Returning false would have caused all sorts of
problems if they were not lowered yet and there is an assert to
catch this later anyway.

We also update the tests to reflect this change.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/link_varyings.cpp
src/compiler/glsl/tests/varyings_test.cpp