compiler/spirv: add implementation to check for SpvCapabilityInt16 support

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Iago Toral Quiroga
2018-03-02 11:08:52 +01:00
parent dd41630d9a
commit f07c05576f
2 changed files with 4 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ struct spirv_supported_capabilities {
bool multiview; bool multiview;
bool variable_pointers; bool variable_pointers;
bool storage_16bit; bool storage_16bit;
bool int16;
bool shader_viewport_index_layer; bool shader_viewport_index_layer;
bool subgroup_arithmetic; bool subgroup_arithmetic;
bool subgroup_ballot; bool subgroup_ballot;

View File

@@ -3281,7 +3281,6 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
case SpvCapabilityFloat16: case SpvCapabilityFloat16:
case SpvCapabilityInt64Atomics: case SpvCapabilityInt64Atomics:
case SpvCapabilityAtomicStorage: case SpvCapabilityAtomicStorage:
case SpvCapabilityInt16:
case SpvCapabilityStorageImageMultisample: case SpvCapabilityStorageImageMultisample:
case SpvCapabilityInt8: case SpvCapabilityInt8:
case SpvCapabilitySparseResidency: case SpvCapabilitySparseResidency:
@@ -3297,6 +3296,9 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
case SpvCapabilityInt64: case SpvCapabilityInt64:
spv_check_supported(int64, cap); spv_check_supported(int64, cap);
break; break;
case SpvCapabilityInt16:
spv_check_supported(int16, cap);
break;
case SpvCapabilityAddresses: case SpvCapabilityAddresses:
case SpvCapabilityKernel: case SpvCapabilityKernel: