diff --git a/README.md b/README.md index 97def955..1c9696ae 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,7 @@ Khronos SPIR-V Registry](https://www.khronos.org/registry/spir-v/). 1. [SPV_INTEL_split_barrier ]( http://htmlpreview.github.io/?https://github.com/KhronosGroup/SPIRV-Registry/blob/main/extensions/INTEL/SPV_INTEL_split_barrier.html) 1. [SPV_KHR_ray_cull_mask ]( http://htmlpreview.github.io/?https://github.com/KhronosGroup/SPIRV-Registry/blob/main/extensions/KHR/SPV_KHR_ray_cull_mask.html) 1. [SPV_KHR_fragment_shader_barycentric ]( http://htmlpreview.github.io/?https://github.com/KhronosGroup/SPIRV-Registry/blob/main/extensions/KHR/SPV_KHR_fragment_shader_barycentric.html) +1. [SPV_EXT_relaxed_printf_string_address_space ]( http://htmlpreview.github.io/?https://github.com/KhronosGroup/SPIRV-Registry/blob/main/extensions/POCL/SPV_EXT_relaxed_printf_string_address_space.html) ## Non-Semantic Extended Instruction Set Specifications diff --git a/extensions/EXT/SPV_EXT_relaxed_printf_string_address_space.asciidoc b/extensions/EXT/SPV_EXT_relaxed_printf_string_address_space.asciidoc new file mode 100755 index 00000000..5904c7e2 --- /dev/null +++ b/extensions/EXT/SPV_EXT_relaxed_printf_string_address_space.asciidoc @@ -0,0 +1,85 @@ +:extension_name: SPV_EXT_relaxed_printf_string_address_space + += {extension_name} + +== Name Strings + +{extension_name} + +== Contact + +To report problems with this extension, please open a new issue at: + +https://github.com/KhronosGroup/SPIRV-Registry + +== Contributors + +Pekka Jääskeläinen, Parmance + +Henry Linjamäki, Parmance + +Brice Videau, Argonne National Laboratory + +Anastasia Stulova, Arm + +== Notice + +Copyright (c) 2022 The Khronos Group Inc. Copyright terms at +http://www.khronos.org/registry/speccopyright.html + +== Status + +Draft + +== Version + +[width="40%",cols="25,25"] +|======================================== +| Last Modified Date | {docdate} +| Revision | 3 +|======================================== + +== Dependencies + +This extension is written against the SPIR-V Specification, +Version 1.5, Revision 3, Unified + +This extension is written against the OpenCL Extended Instruction Set +Specification, Version 1.00, Revision 7 + +This extension requires SPIR-V 1.0. + +== Overview + +This extension relaxes the address space requirement of the printf builtin +to support the cl_ext_relaxed_printf_string_address_space OpenCL C extension. + +== Extension Name + +To use this extension within a SPIR-V module, the following +*OpExtension* must be present in the module: + +[subs="attributes"] +---- +OpExtension "{extension_name}" +---- + +== Modifications to the OpenCL Extended Instruction Set Specification, Version 1.00, Revision 4 + +Modify Section 2.8, "Misc instructions", the printf description, the +sentence "format must be a pointer(constant) to i8." to +"format must be a pointer(constant, global, local, private, generic) to i8." + +=== Issues + +None + +Revision History +---------------- + +[cols="5,15,15,70"] +[grid="rows"] +[options="header"] +|======================================== +|Rev|Date|Author|Changes +|2|2022-06-13|Pekka Jääskeläinen, Anastasia Stulova| *The format pointer can also point to the generic address space.* +|2|2022-05-14|Pekka Jääskeläinen, Brice Videau| *Changed to an 'ext' extension for multi-vendor adoption promotion.* +|1|2022-04-08|Pekka Jääskeläinen|Initial RFC version. +|======================================== diff --git a/extensions/EXT/SPV_EXT_relaxed_printf_string_address_space.html b/extensions/EXT/SPV_EXT_relaxed_printf_string_address_space.html new file mode 100644 index 00000000..1529f149 --- /dev/null +++ b/extensions/EXT/SPV_EXT_relaxed_printf_string_address_space.html @@ -0,0 +1,615 @@ + + + + + + + +SPV_EXT_relaxed_printf_string_address_space + + + + + +
+
+

Name Strings

+
+
+

SPV_EXT_relaxed_printf_string_address_space

+
+
+
+
+

Contact

+
+
+

To report problems with this extension, please open a new issue at:

+
+ +
+
+
+

Contributors

+
+
+

Pekka Jääskeläinen, Parmance
+Henry Linjamäki, Parmance
+Brice Videau, Argonne National Laboratory
+Anastasia Stulova, Arm

+
+
+
+
+

Notice

+
+
+

Copyright (c) 2022 The Khronos Group Inc. Copyright terms at +http://www.khronos.org/registry/speccopyright.html

+
+
+
+
+

Status

+
+
+

Draft

+
+
+
+
+

Version

+
+ ++++ + + + + + + + + + + +

Last Modified Date

2022-06-13

Revision

3

+
+
+
+

Dependencies

+
+
+

This extension is written against the SPIR-V Specification, +Version 1.5, Revision 3, Unified

+
+
+

This extension is written against the OpenCL Extended Instruction Set +Specification, Version 1.00, Revision 7

+
+
+

This extension requires SPIR-V 1.0.

+
+
+
+
+

Overview

+
+
+

This extension relaxes the address space requirement of the printf builtin +to support the cl_ext_relaxed_printf_string_address_space OpenCL C extension.

+
+
+
+
+

Extension Name

+
+
+

To use this extension within a SPIR-V module, the following +OpExtension must be present in the module:

+
+
+
+
OpExtension "SPV_EXT_relaxed_printf_string_address_space"
+
+
+
+
+
+

Modifications to the OpenCL Extended Instruction Set Specification, Version 1.00, Revision 4

+
+
+

Modify Section 2.8, "Misc instructions", the printf description, the +sentence "format must be a pointer(constant) to i8." to +"format must be a pointer(constant, global, local, private, generic) to i8."

+
+
+

Issues

+
+

None

+
+
+
+
+
+

Revision History

+
+ ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
RevDateAuthorChanges

2

2022-06-13

Pekka Jääskeläinen, Anastasia Stulova

The format pointer can also point to the generic address space.

2

2022-05-14

Pekka Jääskeläinen, Brice Videau

Changed to an 'ext' extension for multi-vendor adoption promotion.

1

2022-04-08

Pekka Jääskeläinen

Initial RFC version.

+
+
+
+ + + \ No newline at end of file