From: Jason Ekstrand Date: Fri, 6 Jul 2018 21:05:22 +0000 (-0700) Subject: spirv/info: Add a memorymodel_to_string helper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ebe89459cca8a3b50a97377a92c7fb194147051;p=mesa.git spirv/info: Add a memorymodel_to_string helper Reviewed-by: Caio Marcelo de Oliveira Filho Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/compiler/spirv/spirv_info.h b/src/compiler/spirv/spirv_info.h index e4eac9e690f..199b98c9cc3 100644 --- a/src/compiler/spirv/spirv_info.h +++ b/src/compiler/spirv/spirv_info.h @@ -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); diff --git a/src/compiler/spirv/spirv_info_c.py b/src/compiler/spirv/spirv_info_c.py index b9938aedb85..1e5017cb249 100644 --- a/src/compiler/spirv/spirv_info_c.py +++ b/src/compiler/spirv/spirv_info_c.py @@ -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), ]