spirv: Fix loading an entire block at once.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 3 Dec 2017 14:35:39 +0000 (15:35 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 10 Dec 2017 00:43:26 +0000 (01:43 +0100)
commitb926da241a4221376afe195c476f6a05621e5c75
tree22cf5a1d12e2cdbde2298e2358ea4c851f7ca560
parent4c7af87fb9275787d2235595fb9edf0c51d99510
spirv: Fix loading an entire block at once.

There is no chain, so  checking the length ends with a SEGFAULT.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103579
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/vtn_variables.c