glsl/ast: Explicitly track the set of case labels that occur after default
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 19 Sep 2017 20:47:52 +0000 (15:47 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 2 Oct 2017 21:46:10 +0000 (14:46 -0700)
commit3e5cd2aba9317ba4e3eb812b8b88523a9371f86a
tree073d5b3410ee9d1a5a1b7c7223cd0ee77fe6782e
parentf307de28384187e0e1b40d926381f7f61e518174
glsl/ast: Explicitly track the set of case labels that occur after default

Previously the instruction stream was walked looking for comparisons
with case-label values.  This should generate nearly identical code.
For at least fs-default-notlast-fallthrough.shader_test, the code is
identical.

This change will make later changes possible.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/glsl/ast_to_hir.cpp