glsl: simplify disable_varying_optimizations_for_sso
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sun, 11 Jun 2017 10:48:52 +0000 (12:48 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 3 Jul 2017 11:54:20 +0000 (13:54 +0200)
commitda506cce8ae8fd05b1f8e93ebed3009b8f176d59
treea1dfbef0f8d7b2b7cac97bbc8736cc22aa67f8a9
parent141d0831ff631d6405540bc42ec7f626f6400a72
glsl: simplify disable_varying_optimizations_for_sso

We always have stage == first and stage == last when first == last, so
drop the special case. Also rephrase the comment to make the logic
clearer.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/glsl/linker.cpp