Fixing bug in OpAccessChain validation code.
authorEhsan Nasiri <ehsann@google.com>
Mon, 5 Dec 2016 20:11:51 +0000 (15:11 -0500)
committerDavid Neto <dneto@google.com>
Tue, 6 Dec 2016 14:55:39 +0000 (09:55 -0500)
commitaadf696fceec05eaaa1d581d71101cc8f53ace26
treec0c6803f129a3ec3ef78fb3d604cff8045e9caef
parent1f6123fa5fc99af90cb04438479d2955ba7c3c3a
Fixing bug in OpAccessChain validation code.

The validation code for OpAccessChain was missing OpTypeRuntimeArray as
a possible type that can be indexed into.

This was caught by running the validator on VKCTS.

Also adding unit tests for it.
source/validate_id.cpp
test/val/val_id_test.cpp