glsl: fix key used for hashing switch statement cases
authorTapani Pälli <tapani.palli@intel.com>
Fri, 19 Aug 2016 10:44:54 +0000 (13:44 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 22 Aug 2016 04:36:33 +0000 (07:36 +0300)
commit68233801aeb73961cd47dbba276e5d6fcf5411fc
treeba1e37e65ed36059e51c5740bdaf88486198570e
parenta5f445640e8e74a2fe44b684db973c3a518dd1d8
glsl: fix key used for hashing switch statement cases

Implementation previously used value itself as the key, however after
hash implementation change by ee02a5e we cannot use 0 as key.

v2: use constant pointer as the key and implement comparison
    for contents (Eric Anholt)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97309
src/compiler/glsl/ast_to_hir.cpp