Avoid capability checks on ID values. They are not literals
authorDavid Neto <dneto@google.com>
Tue, 28 Jun 2016 21:25:28 +0000 (17:25 -0400)
committerDavid Neto <dneto@google.com>
Wed, 29 Jun 2016 14:39:21 +0000 (10:39 -0400)
commite461cbe2681170476abbf8b28ef663dda1bfa3c1
treeab1b366a01a50d4492f9bdcf61846b904692ab0a
parentf760d115b90face4f804f22e53d76b5db20ff16b
Avoid capability checks on ID values. They are not literals

Works around issue 248 by weakening the test:
https://github.com/KhronosGroup/SPIRV-Tools/issues/248

The validator should try to track (32-bit) constant values, and then
for capability checks on IDs, check the referenced value, not the
raw ID number.
source/validate_instruction.cpp
test/Validate.Capability.cpp