spirv/info: Add a memorymodel_to_string helper
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 6 Jul 2018 21:05:22 +0000 (14:05 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 24 Oct 2019 18:39:55 +0000 (11:39 -0700)
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/compiler/spirv/spirv_info.h
src/compiler/spirv/spirv_info_c.py

index e4eac9e690fa1a7473a2397e63c6dc2f79997afe..199b98c9cc3a8f3c0894fbb93f6b8cea85bc592f 100644 (file)
@@ -34,6 +34,7 @@ const char *spirv_dim_to_string(SpvDim dim);
 const char *spirv_executionmode_to_string(SpvExecutionMode mode);
 const char *spirv_executionmodel_to_string(SpvExecutionModel model);
 const char *spirv_imageformat_to_string(SpvImageFormat format);
+const char *spirv_memorymodel_to_string(SpvMemoryModel cap);
 const char *spirv_op_to_string(SpvOp op);
 const char *spirv_storageclass_to_string(SpvStorageClass sc);
 
index b9938aedb85e61c45724249cf7e201f3617a4337..1e5017cb249dc645f4be45a7834df4f62405455e 100644 (file)
@@ -103,6 +103,7 @@ if __name__ == "__main__":
         collect_data(spirv_info, "ExecutionMode"),
         collect_data(spirv_info, "ExecutionModel"),
         collect_data(spirv_info, "ImageFormat"),
+        collect_data(spirv_info, "MemoryModel"),
         collect_data(spirv_info, "StorageClass"),
         collect_opcodes(spirv_info),
     ]