From 54e46613091f2c9a482310effadbadc6565cb07e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pekka=20J=C3=A4=C3=A4skel=C3=A4inen?= Date: Fri, 8 Apr 2022 15:13:29 +0300 Subject: [PATCH 1/4] SPV_POCL_relaxed_printf_string_address_space extension rev 1 --- README.md | 1 + ...laxed_printf_string_address_space.asciidoc | 82 +++ ...L_relaxed_printf_string_address_space.html | 602 ++++++++++++++++++ 3 files changed, 685 insertions(+) create mode 100755 extensions/POCL/SPV_POCL_relaxed_printf_string_address_space.asciidoc create mode 100644 extensions/POCL/SPV_POCL_relaxed_printf_string_address_space.html diff --git a/README.md b/README.md index 97def95..962fe9b 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_POCL_relaxed_printf_string_address_space ]( http://htmlpreview.github.io/?https://github.com/KhronosGroup/SPIRV-Registry/blob/main/extensions/POCL/SPV_POCL_relaxed_printf_string_address_space.html) ## Non-Semantic Extended Instruction Set Specifications diff --git a/extensions/POCL/SPV_POCL_relaxed_printf_string_address_space.asciidoc b/extensions/POCL/SPV_POCL_relaxed_printf_string_address_space.asciidoc new file mode 100755 index 0000000..be5a0f5 --- /dev/null +++ b/extensions/POCL/SPV_POCL_relaxed_printf_string_address_space.asciidoc @@ -0,0 +1,82 @@ +:extension_name: SPV_POCL_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 + +== Notice + +Copyright (c) 2022 The Khronos Group Inc. Copyright terms at +http://www.khronos.org/registry/speccopyright.html + +== Status + +Early Draft + +== Version + +[width="40%",cols="25,25"] +|======================================== +| Last Modified Date | {docdate} +| Revision | 1 +|======================================== + +== 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_pocl_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) to i8." + +=== Issues + +None + +Revision History +---------------- + +[cols="5,15,15,70"] +[grid="rows"] +[options="header"] +|======================================== +|Rev|Date|Author|Changes +|1|2022-04-08|Pekka Jääskeläinen|Initial RFC version. +|======================================== diff --git a/extensions/POCL/SPV_POCL_relaxed_printf_string_address_space.html b/extensions/POCL/SPV_POCL_relaxed_printf_string_address_space.html new file mode 100644 index 0000000..089f4ea --- /dev/null +++ b/extensions/POCL/SPV_POCL_relaxed_printf_string_address_space.html @@ -0,0 +1,602 @@ + + + + + + + +SPV_POCL_relaxed_printf_string_address_space + + + + + +
+
+

Name Strings

+
+
+

SPV_POCL_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

+
+
+
+
+

Notice

+
+
+

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

+
+
+
+
+

Status

+
+
+

Early Draft

+
+
+
+
+

Version

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

Last Modified Date

2022-04-08

Revision

1

+
+
+
+

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_pocl_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_POCL_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) to i8."

+
+
+

Issues

+
+

None

+
+
+
+
+
+

Revision History

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

1

2022-04-08

Pekka Jääskeläinen

Initial RFC version.

+
+
+
+ + + \ No newline at end of file From b6ec4ee87c51f9a4bbda4a9453a2fc819e23ba45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pekka=20J=C3=A4=C3=A4skel=C3=A4inen?= Date: Sat, 14 May 2022 08:12:41 +0300 Subject: [PATCH 2/4] Changed the relaxed printf AS to an EXT extension --- ...axed_printf_string_address_space.asciidoc} | 9 +++---- ..._relaxed_printf_string_address_space.html} | 24 ++++++++++++------- 2 files changed, 20 insertions(+), 13 deletions(-) rename extensions/{POCL/SPV_POCL_relaxed_printf_string_address_space.asciidoc => EXT/SPV_EXT_relaxed_printf_string_address_space.asciidoc} (85%) rename extensions/{POCL/SPV_POCL_relaxed_printf_string_address_space.html => EXT/SPV_EXT_relaxed_printf_string_address_space.html} (97%) diff --git a/extensions/POCL/SPV_POCL_relaxed_printf_string_address_space.asciidoc b/extensions/EXT/SPV_EXT_relaxed_printf_string_address_space.asciidoc similarity index 85% rename from extensions/POCL/SPV_POCL_relaxed_printf_string_address_space.asciidoc rename to extensions/EXT/SPV_EXT_relaxed_printf_string_address_space.asciidoc index be5a0f5..ddcaa79 100755 --- a/extensions/POCL/SPV_POCL_relaxed_printf_string_address_space.asciidoc +++ b/extensions/EXT/SPV_EXT_relaxed_printf_string_address_space.asciidoc @@ -1,4 +1,4 @@ -:extension_name: SPV_POCL_relaxed_printf_string_address_space +:extension_name: SPV_EXT_relaxed_printf_string_address_space = {extension_name} @@ -25,14 +25,14 @@ http://www.khronos.org/registry/speccopyright.html == Status -Early Draft +Draft == Version [width="40%",cols="25,25"] |======================================== | Last Modified Date | {docdate} -| Revision | 1 +| Revision | 2 |======================================== == Dependencies @@ -48,7 +48,7 @@ This extension requires SPIR-V 1.0. == Overview This extension relaxes the address space requirement of the printf builtin -to support the cl_pocl_relaxed_printf_string_address_space OpenCL C extension. +to support the cl_ext_relaxed_printf_string_address_space OpenCL C extension. == Extension Name @@ -78,5 +78,6 @@ Revision History [options="header"] |======================================== |Rev|Date|Author|Changes +|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/POCL/SPV_POCL_relaxed_printf_string_address_space.html b/extensions/EXT/SPV_EXT_relaxed_printf_string_address_space.html similarity index 97% rename from extensions/POCL/SPV_POCL_relaxed_printf_string_address_space.html rename to extensions/EXT/SPV_EXT_relaxed_printf_string_address_space.html index 089f4ea..b3107b0 100644 --- a/extensions/POCL/SPV_POCL_relaxed_printf_string_address_space.html +++ b/extensions/EXT/SPV_EXT_relaxed_printf_string_address_space.html @@ -5,7 +5,7 @@ -SPV_POCL_relaxed_printf_string_address_space +SPV_EXT_relaxed_printf_string_address_space