spirv/nir: Add support for SPV_KHR_8bit_storage
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -58,6 +58,7 @@ struct spirv_supported_capabilities {
|
||||
bool runtime_descriptor_array;
|
||||
bool stencil_export;
|
||||
bool atomic_storage;
|
||||
bool storage_8bit;
|
||||
};
|
||||
|
||||
typedef struct shader_info {
|
||||
|
@@ -3498,6 +3498,12 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
|
||||
spv_check_supported(shader_viewport_index_layer, cap);
|
||||
break;
|
||||
|
||||
case SpvCapabilityStorageBuffer8BitAccess:
|
||||
case SpvCapabilityUniformAndStorageBuffer8BitAccess:
|
||||
case SpvCapabilityStoragePushConstant8:
|
||||
spv_check_supported(storage_8bit, cap);
|
||||
break;
|
||||
|
||||
case SpvCapabilityInputAttachmentArrayDynamicIndexingEXT:
|
||||
case SpvCapabilityUniformTexelBufferArrayDynamicIndexingEXT:
|
||||
case SpvCapabilityStorageTexelBufferArrayDynamicIndexingEXT:
|
||||
|
Reference in New Issue
Block a user