Add tests for SubgroupDispatch.
authorDejan Mircevski <deki@google.com>
Thu, 21 Apr 2016 19:46:08 +0000 (15:46 -0400)
committerDejan Mircevski <deki@google.com>
Thu, 21 Apr 2016 19:46:08 +0000 (15:46 -0400)
commit2ea54f5d1b735a2bf173e07cebb9d40534260347
treeedf1f785acc50df4c8ae89bca99d924202d00641
parent2d975d54aec92385b2095930eed94fbe051b453b
Add tests for SubgroupDispatch.

Introduced in v1.1, SubgroupDispatch adds the following:
- two new execution modes
- one new capability
- two new opcodes

Extend ValidateBase methods to take a spv_target_env.  Replace the
context_ member with ScopedContext inside the said methods.  Give
ScopedContext wider visibility by moving it outside
TextToBinaryTestBase.
16 files changed:
test/AssemblyFormat.cpp
test/BinaryDestroy.cpp
test/BinaryParse.cpp
test/BinaryToText.cpp
test/CMakeLists.txt
test/ImmediateInt.cpp
test/OpcodeRequiresCapabilities.cpp
test/OperandCapabilities.cpp
test/TestFixture.h
test/TextToBinary.ModeSetting.cpp
test/TextToBinary.SubgroupDispatch.cpp [new file with mode: 0644]
test/TextToBinary.cpp
test/Validate.Capability.cpp
test/ValidateFixtures.cpp
test/ValidateFixtures.h
test/ValidateID.cpp