From fad9cdf7e7adf147ba2f4e60fbfe3deb347b71b0 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Sun, 31 Mar 2024 12:22:35 -0700 Subject: [PATCH 01/11] add error codes for cl_khr_command_buffer --- api/appendix_f.asciidoc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/api/appendix_f.asciidoc b/api/appendix_f.asciidoc index f2bb39c6..d3666b46 100644 --- a/api/appendix_f.asciidoc +++ b/api/appendix_f.asciidoc @@ -332,6 +332,23 @@ include::{generated}/api/version-notes/CL_MAX_SIZE_RESTRICTION_EXCEEDED.asciidoc include::{generated}/api/version-notes/CL_PROFILING_INFO_NOT_AVAILABLE.asciidoc[] | Returned by {clGetEventProfilingInfo} when the command associated with the specified event was not enqueued into a command-queue with {CL_QUEUE_PROFILING_ENABLE}. +ifdef::cl_khr_command_buffer[] +| {CL_INVALID_COMMAND_BUFFER_KHR_anchor} + +include::{generated}/api/version-notes/CL_INVALID_COMMAND_BUFFER_KHR.asciidoc[] +| Returned when the specified command-buffer is not a <>. + +| {CL_INVALID_SYNC_POINT_WAIT_LIST_KHR_anchor} + +include::{generated}/api/version-notes/CL_INVALID_SYNC_POINT_WAIT_LIST_KHR.asciidoc[] +| Returned when the specified sync point wait list or number of sync points in the wait list is not valid. + +| {CL_INCOMPATIBLE_COMMAND_QUEUE_KHR_anchor} + +include::{generated}/api/version-notes/CL_INCOMPATIBLE_COMMAND_QUEUE_KHR.asciidoc[] +| Returned when one or more command-queues is incompatible with a command-buffer. +endif::cl_khr_command_buffer[] + ifdef::cl_khr_icd[] | {CL_PLATFORM_NOT_FOUND_KHR_anchor} From a77c3fef94e8f68b2229e289fb30df4984fc0833 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Sun, 31 Mar 2024 12:29:25 -0700 Subject: [PATCH 02/11] add error codes for cl_khr_d3d10_sharing --- api/appendix_f.asciidoc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/api/appendix_f.asciidoc b/api/appendix_f.asciidoc index d3666b46..1cf845dc 100644 --- a/api/appendix_f.asciidoc +++ b/api/appendix_f.asciidoc @@ -349,6 +349,25 @@ include::{generated}/api/version-notes/CL_INCOMPATIBLE_COMMAND_QUEUE_KHR.asciido | Returned when one or more command-queues is incompatible with a command-buffer. endif::cl_khr_command_buffer[] +ifdef::cl_khr_d3d10_sharing[] +| {CL_INVALID_D3D10_DEVICE_KHR_anchor} + +include::{generated}/api/version-notes/CL_INVALID_D3D10_DEVICE_KHR.asciidoc[] +| Returned when a Direct3D 10 device cannot interoperate with OpenCL device IDs. +| {CL_INVALID_D3D10_RESOURCE_KHR_anchor} + +include::{generated}/api/version-notes/CL_INVALID_D3D10_RESOURCE_KHR.asciidoc[] +| Returned when an OpenCL object cannot be created from a Direct3D 10 resource. +| {CL_D3D10_RESOURCE_ALREADY_ACQUIRED_KHR_anchor} + +include::{generated}/api/version-notes/CL_D3D10_RESOURCE_ALREADY_ACQUIRED_KHR.asciidoc[] +| Returned when attempting to acquire an OpenCL object created from a Direct3D 10 resource that was already acquired. +| {CL_D3D10_RESOURCE_NOT_ACQUIRED_KHR_anchor} + +include::{generated}/api/version-notes/CL_D3D10_RESOURCE_NOT_ACQUIRED_KHR.asciidoc[] +| Returned when attempting to release an OpenCL object created from a Direct3D 10 resource that has not been acquired. +endif::cl_khr_d3d10_sharing[] + ifdef::cl_khr_icd[] | {CL_PLATFORM_NOT_FOUND_KHR_anchor} From f48dd0ffd6f52ce1cb4205efb18df26ae2d7dead Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Sun, 31 Mar 2024 12:31:05 -0700 Subject: [PATCH 03/11] add error codes for cl_khr_d3d11_sharing --- api/appendix_f.asciidoc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/api/appendix_f.asciidoc b/api/appendix_f.asciidoc index 1cf845dc..39ad6449 100644 --- a/api/appendix_f.asciidoc +++ b/api/appendix_f.asciidoc @@ -368,6 +368,25 @@ include::{generated}/api/version-notes/CL_D3D10_RESOURCE_NOT_ACQUIRED_KHR.asciid | Returned when attempting to release an OpenCL object created from a Direct3D 10 resource that has not been acquired. endif::cl_khr_d3d10_sharing[] +ifdef::cl_khr_d3d11_sharing[] +| {CL_INVALID_D3D11_DEVICE_KHR_anchor} + +include::{generated}/api/version-notes/CL_INVALID_D3D11_DEVICE_KHR.asciidoc[] +| Returned when a Direct3D 11 device cannot interoperate with OpenCL device IDs. +| {CL_INVALID_D3D11_RESOURCE_KHR_anchor} + +include::{generated}/api/version-notes/CL_INVALID_D3D11_RESOURCE_KHR.asciidoc[] +| Returned when an OpenCL object cannot be created from a Direct3D 11 resource. +| {CL_D3D11_RESOURCE_ALREADY_ACQUIRED_KHR_anchor} + +include::{generated}/api/version-notes/CL_D3D11_RESOURCE_ALREADY_ACQUIRED_KHR.asciidoc[] +| Returned when attempting to acquire an OpenCL object created from a Direct3D 11 resource that was already acquired. +| {CL_D3D11_RESOURCE_NOT_ACQUIRED_KHR_anchor} + +include::{generated}/api/version-notes/CL_D3D11_RESOURCE_NOT_ACQUIRED_KHR.asciidoc[] +| Returned when attempting to release an OpenCL object created from a Direct3D 11 resource that has not been acquired. +endif::cl_khr_d3d11_sharing[] + ifdef::cl_khr_icd[] | {CL_PLATFORM_NOT_FOUND_KHR_anchor} From e421b26dc32550a3e99268d1a65f65db20fc412d Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Sun, 31 Mar 2024 12:33:34 -0700 Subject: [PATCH 04/11] error codes for cl_khr_dx9_media_sharing --- api/appendix_f.asciidoc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/api/appendix_f.asciidoc b/api/appendix_f.asciidoc index 39ad6449..b0d5ebf4 100644 --- a/api/appendix_f.asciidoc +++ b/api/appendix_f.asciidoc @@ -387,6 +387,25 @@ include::{generated}/api/version-notes/CL_D3D11_RESOURCE_NOT_ACQUIRED_KHR.asciid | Returned when attempting to release an OpenCL object created from a Direct3D 11 resource that has not been acquired. endif::cl_khr_d3d11_sharing[] +ifdef::cl_khr_dx9_media_sharing[] +| {CL_INVALID_DX9_MEDIA_ADAPTER_KHR_anchor} + +include::{generated}/api/version-notes/CL_INVALID_DX9_MEDIA_ADAPTER_KHR.asciidoc[] +| Returned when a DirectX 9 media adapter cannot interoperate with OpenCL device IDs. +| {CL_INVALID_DX9_MEDIA_SURFACE_KHR_anchor} + +include::{generated}/api/version-notes/CL_INVALID_DX9_MEDIA_SURFACE_KHR.asciidoc[] +| Returned when an OpenCL object cannot be created from a DirectX 9 media surcface. +| {CL_DX9_MEDIA_SURFACE_ALREADY_ACQUIRED_KHR_anchor} + +include::{generated}/api/version-notes/CL_DX9_MEDIA_SURFACE_ALREADY_ACQUIRED_KHR.asciidoc[] +| Returned when attempting to acquire an OpenCL object created from a DirectX 9 media surface that was already acquired. +| {CL_DX9_MEDIA_SURFACE_NOT_ACQUIRED_KHR_anchor} + +include::{generated}/api/version-notes/CL_DX9_MEDIA_SURFACE_NOT_ACQUIRED_KHR.asciidoc[] +| Returned when attempting to release an OpenCL object created from a DirectX 9 media surface that has not been acquired. +endif::cl_khr_dx9_media_sharing[] + ifdef::cl_khr_icd[] | {CL_PLATFORM_NOT_FOUND_KHR_anchor} From f772b7addb9eaf14e9bc02de1d000835db2880bf Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Sun, 31 Mar 2024 12:41:57 -0700 Subject: [PATCH 05/11] error codes for cl_khr_egl_event --- api/appendix_f.asciidoc | 7 +++++++ api/cl_khr_d3d10_sharing.asciidoc | 2 +- api/cl_khr_d3d11_sharing.asciidoc | 2 +- api/cl_khr_dx9_media_sharing.asciidoc | 2 +- api/cl_khr_egl_event.asciidoc | 3 ++- api/cl_khr_egl_image.asciidoc | 2 +- api/cl_khr_external_memory.asciidoc | 2 +- api/cl_khr_semaphore.asciidoc | 2 +- 8 files changed, 15 insertions(+), 7 deletions(-) diff --git a/api/appendix_f.asciidoc b/api/appendix_f.asciidoc index b0d5ebf4..c9d4581d 100644 --- a/api/appendix_f.asciidoc +++ b/api/appendix_f.asciidoc @@ -406,6 +406,13 @@ include::{generated}/api/version-notes/CL_DX9_MEDIA_SURFACE_NOT_ACQUIRED_KHR.asc | Returned when attempting to release an OpenCL object created from a DirectX 9 media surface that has not been acquired. endif::cl_khr_dx9_media_sharing[] +ifdef::cl_khr_egl_event[] +| {CL_INVALID_EGL_OBJECT_KHR_anchor} + +include::{generated}/api/version-notes/CL_INVALID_EGL_OBJECT_KHR.asciidoc[] +| Returned when the specified EGL object is not valid. +endif::cl_khr_egl_event[] + ifdef::cl_khr_icd[] | {CL_PLATFORM_NOT_FOUND_KHR_anchor} diff --git a/api/cl_khr_d3d10_sharing.asciidoc b/api/cl_khr_d3d10_sharing.asciidoc index ace32dbe..fdf9073f 100644 --- a/api/cl_khr_d3d10_sharing.asciidoc +++ b/api/cl_khr_d3d10_sharing.asciidoc @@ -46,7 +46,7 @@ include::{generated}/meta/{refprefix}cl_khr_d3d10_sharing.txt[] ** {CL_MEM_D3D10_RESOURCE_KHR} * {cl_image_info_TYPE} ** {CL_IMAGE_D3D10_SUBRESOURCE_KHR} - * {cl_event_info_TYPE} + * {cl_command_type_TYPE} ** {CL_COMMAND_ACQUIRE_D3D10_OBJECTS_KHR} ** {CL_COMMAND_RELEASE_D3D10_OBJECTS_KHR} * New Error Codes diff --git a/api/cl_khr_d3d11_sharing.asciidoc b/api/cl_khr_d3d11_sharing.asciidoc index 884044ed..03d987bf 100644 --- a/api/cl_khr_d3d11_sharing.asciidoc +++ b/api/cl_khr_d3d11_sharing.asciidoc @@ -41,7 +41,7 @@ include::{generated}/meta/{refprefix}cl_khr_d3d11_sharing.txt[] ** {CL_MEM_D3D11_RESOURCE_KHR} * {cl_image_info_TYPE} ** {CL_IMAGE_D3D11_SUBRESOURCE_KHR} - * {cl_event_info_TYPE} + * {cl_command_type_TYPE} ** {CL_COMMAND_ACQUIRE_D3D11_OBJECTS_KHR} ** {CL_COMMAND_RELEASE_D3D11_OBJECTS_KHR} * New Error Codes diff --git a/api/cl_khr_dx9_media_sharing.asciidoc b/api/cl_khr_dx9_media_sharing.asciidoc index 92e8ed51..2cb4d921 100644 --- a/api/cl_khr_dx9_media_sharing.asciidoc +++ b/api/cl_khr_dx9_media_sharing.asciidoc @@ -50,7 +50,7 @@ adapter. ** {CL_MEM_DX9_MEDIA_SURFACE_INFO_KHR} * {cl_image_info_TYPE} ** {CL_IMAGE_DX9_MEDIA_PLANE_KHR} - * {cl_event_info_TYPE} + * {cl_command_type_TYPE} ** {CL_COMMAND_ACQUIRE_DX9_MEDIA_SURFACES_KHR} ** {CL_COMMAND_RELEASE_DX9_MEDIA_SURFACES_KHR} * New Error Codes diff --git a/api/cl_khr_egl_event.asciidoc b/api/cl_khr_egl_event.asciidoc index f9663530..1c4128c8 100644 --- a/api/cl_khr_egl_event.asciidoc +++ b/api/cl_khr_egl_event.asciidoc @@ -26,9 +26,10 @@ functionality of creating an EGL sync object from an OpenCL event object. === New Tokens + * {cl_command_type_TYPE} + ** {CL_COMMAND_EGL_FENCE_SYNC_OBJECT_KHR} * New Error Codes ** {CL_INVALID_EGL_OBJECT_KHR} - ** {CL_COMMAND_EGL_FENCE_SYNC_OBJECT_KHR} === Issues diff --git a/api/cl_khr_egl_image.asciidoc b/api/cl_khr_egl_image.asciidoc index d324637a..5aeb7dd8 100644 --- a/api/cl_khr_egl_image.asciidoc +++ b/api/cl_khr_egl_image.asciidoc @@ -22,7 +22,7 @@ from from EGLImages. * {clCreateFromEGLImageKHR} * {clEnqueueAcquireEGLObjectsKHR} * {clEnqueueReleaseEGLObjectsKHR} - * {cl_event_info_TYPE} + * {cl_command_type_TYPE} ** {CL_COMMAND_ACQUIRE_EGL_OBJECTS_KHR} ** {CL_COMMAND_RELEASE_EGL_OBJECTS_KHR} * New Error Codes diff --git a/api/cl_khr_external_memory.asciidoc b/api/cl_khr_external_memory.asciidoc index c9f3567b..3f5e976d 100644 --- a/api/cl_khr_external_memory.asciidoc +++ b/api/cl_khr_external_memory.asciidoc @@ -85,7 +85,7 @@ TODO ** {CL_MEM_DEVICE_HANDLE_LIST_KHR} ** {CL_MEM_DEVICE_HANDLE_LIST_END_KHR} * Return values from from {clGetEventInfo} when _param_name_ is - {CL_EVENT_COMMAND_TYPE}: + {cl_command_type_TYPE}: ** {CL_COMMAND_ACQUIRE_EXTERNAL_MEM_OBJECTS_KHR} ** {CL_COMMAND_RELEASE_EXTERNAL_MEM_OBJECTS_KHR} diff --git a/api/cl_khr_semaphore.asciidoc b/api/cl_khr_semaphore.asciidoc index 4d442fec..4def98eb 100644 --- a/api/cl_khr_semaphore.asciidoc +++ b/api/cl_khr_semaphore.asciidoc @@ -90,7 +90,7 @@ In particular, this extension defines: ** {CL_SEMAPHORE_DEVICE_HANDLE_LIST_KHR} ** {CL_SEMAPHORE_DEVICE_HANDLE_LIST_END_KHR} // TODO these are not described anywhere in the extension spec document - * New return values from {clGetEventInfo} + * {cl_command_type_TYPE} ** {CL_COMMAND_SEMAPHORE_WAIT_KHR} ** {CL_COMMAND_SEMAPHORE_SIGNAL_KHR} * New Error Codes From 984a0e4f5ae9753ffac07c254f55aece6cf56bad Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Sun, 31 Mar 2024 12:52:09 -0700 Subject: [PATCH 06/11] error codes for cl_khr_egl_image --- api/appendix_f.asciidoc | 8 ++++++-- api/cl_khr_egl_event.asciidoc | 6 ++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/api/appendix_f.asciidoc b/api/appendix_f.asciidoc index c9d4581d..67f82dcf 100644 --- a/api/appendix_f.asciidoc +++ b/api/appendix_f.asciidoc @@ -406,12 +406,16 @@ include::{generated}/api/version-notes/CL_DX9_MEDIA_SURFACE_NOT_ACQUIRED_KHR.asc | Returned when attempting to release an OpenCL object created from a DirectX 9 media surface that has not been acquired. endif::cl_khr_dx9_media_sharing[] -ifdef::cl_khr_egl_event[] +ifdef::cl_khr_egl_image[] +| {CL_EGL_RESOURCE_NOT_ACQUIRED_KHR_anchor} + +include::{generated}/api/version-notes/CL_EGL_RESOURCE_NOT_ACQUIRED_KHR.asciidoc[] +| Possible event status if an EGL resource is used without being acquired. | {CL_INVALID_EGL_OBJECT_KHR_anchor} include::{generated}/api/version-notes/CL_INVALID_EGL_OBJECT_KHR.asciidoc[] | Returned when the specified EGL object is not valid. -endif::cl_khr_egl_event[] +endif::cl_khr_egl_image[] ifdef::cl_khr_icd[] | {CL_PLATFORM_NOT_FOUND_KHR_anchor} diff --git a/api/cl_khr_egl_event.asciidoc b/api/cl_khr_egl_event.asciidoc index 1c4128c8..32213db1 100644 --- a/api/cl_khr_egl_event.asciidoc +++ b/api/cl_khr_egl_event.asciidoc @@ -28,8 +28,6 @@ functionality of creating an EGL sync object from an OpenCL event object. * {cl_command_type_TYPE} ** {CL_COMMAND_EGL_FENCE_SYNC_OBJECT_KHR} - * New Error Codes - ** {CL_INVALID_EGL_OBJECT_KHR} === Issues @@ -58,13 +56,13 @@ context, and to reach into each such context. *RESOLVED* Use is limited to calls to acquire and release memory objects only. -- - . What is the desired behaviour for this extension when EGLSyncKHR is of a + . What is the desired behavior for this extension when EGLSyncKHR is of a type other than `EGL_SYNC_FENCE_KHR`? + -- *RESOLVED* This extension only requires support for `EGL_SYNC_FENCE_KHR`. Support of other types is an implementation choice, and will result in -CL_INVALID_EGL_OBJECT_KHR if unsupported. +{CL_INVALID_EGL_OBJECT_KHR} if unsupported. -- === Version History From eaa424e4deb41f14acbaedfa502587eea6cf271e Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Sun, 31 Mar 2024 13:00:05 -0700 Subject: [PATCH 07/11] error codes for cl_khr_gl_sharing --- api/appendix_f.asciidoc | 18 ++++++++++++------ api/cl_khr_gl_sharing.asciidoc | 5 ++--- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/api/appendix_f.asciidoc b/api/appendix_f.asciidoc index 67f82dcf..729f4cba 100644 --- a/api/appendix_f.asciidoc +++ b/api/appendix_f.asciidoc @@ -139,12 +139,6 @@ include::{generated}/api/version-notes/CL_INVALID_EVENT.asciidoc[] include::{generated}/api/version-notes/CL_INVALID_EVENT_WAIT_LIST.asciidoc[] | Returned when the specified event wait list or number of events in the wait list is not valid. -// This is currently defined in cl.h, but it's not a core API error code. -//| {CL_INVALID_GL_OBJECT_anchor} -// -//include::{generated}/api/version-notes/CL_INVALID_GL_OBJECT.asciidoc[] -//| - | {CL_INVALID_GLOBAL_OFFSET_anchor} include::{generated}/api/version-notes/CL_INVALID_GLOBAL_OFFSET.asciidoc[] @@ -417,6 +411,18 @@ include::{generated}/api/version-notes/CL_INVALID_EGL_OBJECT_KHR.asciidoc[] | Returned when the specified EGL object is not valid. endif::cl_khr_egl_image[] +ifdef::cl_khr_gl_sharing[] +// Note: This is currently defined in cl.h, but it's not a core API error code. +| {CL_INVALID_GL_OBJECT_anchor} + +include::{generated}/api/version-notes/CL_INVALID_GL_OBJECT.asciidoc[] +| Returned when the specified OpenGL object is not valid, or when there is no associated OpenGL object for an OpenCL object. +| {CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR_anchor} + +include::{generated}/api/version-notes/CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR.asciidoc[] +| Returned when the specified OpenGL sharing context creation property is not valid. +endif::cl_khr_gl_sharing[] + ifdef::cl_khr_icd[] | {CL_PLATFORM_NOT_FOUND_KHR_anchor} diff --git a/api/cl_khr_gl_sharing.asciidoc b/api/cl_khr_gl_sharing.asciidoc index 7d1bcdaa..ca02891d 100644 --- a/api/cl_khr_gl_sharing.asciidoc +++ b/api/cl_khr_gl_sharing.asciidoc @@ -63,8 +63,6 @@ and buffer object images with OpenCL is required by this extension. === New Tokens - * New Error Codes - ** {CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR} * {cl_gl_context_info_TYPE} ** {CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR} ** {CL_DEVICES_FOR_GL_CONTEXT_KHR} @@ -86,7 +84,8 @@ and buffer object images with OpenCL is required by this extension. * {cl_gl_texture_info_TYPE} ** {CL_GL_TEXTURE_TARGET} ** {CL_GL_MIPMAP_LEVEL} - + * New Error Codes + ** {CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR} === Issues From 04f5cefacf5f6a9d2a66166d2715617b0ba05507 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Sun, 31 Mar 2024 13:01:43 -0700 Subject: [PATCH 08/11] error codes for cl_khr_semaphore --- api/appendix_f.asciidoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/appendix_f.asciidoc b/api/appendix_f.asciidoc index 729f4cba..940d536b 100644 --- a/api/appendix_f.asciidoc +++ b/api/appendix_f.asciidoc @@ -430,4 +430,11 @@ include::{generated}/api/version-notes/CL_PLATFORM_NOT_FOUND_KHR.asciidoc[] | Returned by {clGetPlatformIDs} when no platforms are available. endif::cl_khr_icd[] +ifdef::cl_khr_semaphore[] +| {CL_INVALID_SEMAPHORE_KHR_anchor} + +include::{generated}/api/version-notes/CL_INVALID_SEMAPHORE_KHR.asciidoc[] +| Returned when the specified semaphore is not a <>. +endif::cl_khr_semaphore[] + |==== From 1ee882529f6b5c6bf5aa3474149887436f06de27 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Sun, 31 Mar 2024 13:03:24 -0700 Subject: [PATCH 09/11] error codes for cl_khr_terminate_context --- api/appendix_f.asciidoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/appendix_f.asciidoc b/api/appendix_f.asciidoc index 940d536b..506c70c6 100644 --- a/api/appendix_f.asciidoc +++ b/api/appendix_f.asciidoc @@ -437,4 +437,11 @@ include::{generated}/api/version-notes/CL_INVALID_SEMAPHORE_KHR.asciidoc[] | Returned when the specified semaphore is not a <>. endif::cl_khr_semaphore[] +ifdef::cl_khr_terminate_context[] +| {CL_CONTEXT_TERMINATED_KHR_anchor} + +include::{generated}/api/version-notes/CL_CONTEXT_TERMINATED_KHR.asciidoc[] +| Returned when the specified context has already been terminated, or as an event status for terminated commands. +endif::cl_khr_terminate_context[] + |==== From 4cbefeb923830646742bffde206b31b04671f4a2 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Sun, 31 Mar 2024 13:08:59 -0700 Subject: [PATCH 10/11] error codes for cl_khr_command_buffer_mutable_dispatch --- api/appendix_f.asciidoc | 7 +++++++ api/cl_khr_command_buffer_mutable_dispatch.asciidoc | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/api/appendix_f.asciidoc b/api/appendix_f.asciidoc index 506c70c6..686b2779 100644 --- a/api/appendix_f.asciidoc +++ b/api/appendix_f.asciidoc @@ -343,6 +343,13 @@ include::{generated}/api/version-notes/CL_INCOMPATIBLE_COMMAND_QUEUE_KHR.asciido | Returned when one or more command-queues is incompatible with a command-buffer. endif::cl_khr_command_buffer[] +ifdef::cl_khr_command_buffer_mutable_dispatch[] +| {CL_INVALID_MUTABLE_COMMAND_KHR_anchor} + +include::{generated}/api/version-notes/CL_INVALID_MUTABLE_COMMAND_KHR.asciidoc[] +| Returned when a specified command is not a <>. +endif::cl_khr_command_buffer_mutable_dispatch[] + ifdef::cl_khr_d3d10_sharing[] | {CL_INVALID_D3D10_DEVICE_KHR_anchor} diff --git a/api/cl_khr_command_buffer_mutable_dispatch.asciidoc b/api/cl_khr_command_buffer_mutable_dispatch.asciidoc index ea37650c..8d5429ed 100644 --- a/api/cl_khr_command_buffer_mutable_dispatch.asciidoc +++ b/api/cl_khr_command_buffer_mutable_dispatch.asciidoc @@ -118,7 +118,7 @@ also be updated between enqueues of the command-buffer. * {cl_command_buffer_structure_type_khr_TYPE} ** {CL_STRUCTURE_TYPE_MUTABLE_BASE_CONFIG_KHR} ** {CL_STRUCTURE_TYPE_MUTABLE_DISPATCH_CONFIG_KHR} - * New <> + * New Error Codes ** {CL_INVALID_MUTABLE_COMMAND_KHR} === Sample Code From af412c1573de09984c5d19f63338066b2387c377 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Tue, 2 Apr 2024 08:22:35 -0700 Subject: [PATCH 11/11] fix typo Co-authored-by: Alastair Murray --- api/appendix_f.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/appendix_f.asciidoc b/api/appendix_f.asciidoc index 686b2779..b20d8829 100644 --- a/api/appendix_f.asciidoc +++ b/api/appendix_f.asciidoc @@ -396,7 +396,7 @@ include::{generated}/api/version-notes/CL_INVALID_DX9_MEDIA_ADAPTER_KHR.asciidoc | {CL_INVALID_DX9_MEDIA_SURFACE_KHR_anchor} include::{generated}/api/version-notes/CL_INVALID_DX9_MEDIA_SURFACE_KHR.asciidoc[] -| Returned when an OpenCL object cannot be created from a DirectX 9 media surcface. +| Returned when an OpenCL object cannot be created from a DirectX 9 media surface. | {CL_DX9_MEDIA_SURFACE_ALREADY_ACQUIRED_KHR_anchor} include::{generated}/api/version-notes/CL_DX9_MEDIA_SURFACE_ALREADY_ACQUIRED_KHR.asciidoc[]