Validation of OpEntryPoint usage.
authorEhsan Nasiri <ehsann@google.com>
Mon, 9 Jan 2017 16:10:52 +0000 (11:10 -0500)
committerDavid Neto <dneto@google.com>
Fri, 13 Jan 2017 21:15:11 +0000 (16:15 -0500)
commit1c11c8690f6b8dd3a396447bca8a180e468156a7
treeb6b65a30ab2bae7c01a4dac5a5c5178c35291384
parent68e36ec7e9da5300b5d183be543162928aee5776
Validation of OpEntryPoint usage.

According to the SPIRV Spec (2.16.1):
* There is at least one OpEntryPoint instruction, unless the Linkage
capability is being used.

* No function can be targeted by both an OpEntryPoint instruction and an
OpFunctionCall instruction.

Also updated unit tests to includ OpEntryPoint.
12 files changed:
source/val/validation_state.h
source/validate.cpp
test/c_interface_test.cpp
test/cpp_interface_test.cpp
test/val/val_capability_test.cpp
test/val/val_cfg_test.cpp
test/val/val_data_test.cpp
test/val/val_id_test.cpp
test/val/val_layout_test.cpp
test/val/val_limits_test.cpp
test/val/val_ssa_test.cpp
test/val/val_storage_test.cpp