Support capabilities StorageImageReadWithoutFormat

Also add capability StorageImageWriteWithoutFormat.

They only affect validation rules.
This commit is contained in:
David Neto 2015-11-12 15:44:25 -05:00
parent df3ea3c5de
commit 5f7ed91e18
4 changed files with 7 additions and 3 deletions

View File

@ -27,6 +27,8 @@ information.
## CHANGES (for tools hackers)
* Update to 1.0 Rev2 headers, syntax tables.
* Support new capabilities `GeometryStream`, `StorageImageReadWithoutFormat`,
and `StorageImageWriteWithoutFormat`.
* Update some capabilities to 1.0 Rev2 rules.
* Support `OpSpecConstantOp`.
The opcode operand uses the opcode name, but without the `Op` prefix.
@ -313,8 +315,6 @@ done so previously, CMake will detect the existence of
Required to complete 1.0 support:
* Changes related to capabilities:
* Check changes in dependencies on capabilities since 0.99 Rev32.
* `GeometryStream`.
* `StorageImageReadWithoutFormat`, `StorageImageWriteWithoutFormat`.
* Update values related to the Generator Magic Number. Its meaning has
changed.

View File

@ -1002,6 +1002,8 @@ static const spv_operand_desc_t capabilityInfoEntries[] = {
CASE_CAP(InterpolationFunction, Shader),
CASE_CAP(TransformFeedback, Shader),
CASE_CAP(GeometryStreams, Geometry),
CASE_CAP(StorageImageReadWithoutFormat, Shader),
CASE_CAP(StorageImageWriteWithoutFormat, Shader),
};
#undef CASE
#undef CASE_CAP

View File

@ -28,7 +28,7 @@
#define LIBSPIRV_SPIRV_DEFINITION_H_
// A bit mask representing a set of capabilities.
// Currently there are 54 distinct capabilities, so 64 bits
// Currently there are 57 distinct capabilities, so 64 bits
// should be enough.
typedef uint64_t spv_capability_mask_t;

View File

@ -608,6 +608,8 @@ INSTANTIATE_TEST_CASE_P(
CASE1(CAPABILITY, CapabilityInterpolationFunction, Shader),
CASE1(CAPABILITY, CapabilityTransformFeedback, Shader),
CASE1(CAPABILITY, CapabilityGeometryStreams, Geometry),
CASE1(CAPABILITY, CapabilityStorageImageReadWithoutFormat, Shader),
CASE1(CAPABILITY, CapabilityStorageImageWriteWithoutFormat, Shader),
}));
#undef CASE0