[OpenCL] Set cl_khr_gl_msaa_sharing minimum version to 1.0 (#174322)

cl_khr_gl_msaa_sharing spec doesn't specify a required OpenCL version.

Make the extension available in all OpenCL versions to avoid spurious
'unsupported extension' warnings when implementations advertise it
before 1.2 (e.g., intel compute-runtime 25.13.33276.16).

See also https://github.com/KhronosGroup/OpenCL-CTS/pull/2376.
This commit is contained in:
Wenju He 2026-01-06 09:19:26 +08:00 committed by GitHub
parent ae67b88c0a
commit 25cfdaa4e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -68,6 +68,7 @@ OPENCL_OPTIONALCOREFEATURE(cl_khr_fp64, true, 100, OCL_C_12P)
OPENCL_EXTENSION(cl_khr_fp16, true, 100)
OPENCL_EXTENSION(cl_khr_int64_base_atomics, true, 100)
OPENCL_EXTENSION(cl_khr_int64_extended_atomics, true, 100)
OPENCL_EXTENSION(cl_khr_gl_msaa_sharing, true, 100)
OPENCL_GENERIC_EXTENSION(cl_khr_3d_image_writes, true, 100, OCL_C_20, OCL_C_30)
// EMBEDDED_PROFILE
@ -75,7 +76,6 @@ OPENCL_EXTENSION(cles_khr_int64, true, 110)
// OpenCL 1.2.
OPENCL_EXTENSION(cl_khr_depth_images, true, 120)
OPENCL_EXTENSION(cl_khr_gl_msaa_sharing,true, 120)
// OpenCL 2.0.
OPENCL_EXTENSION(cl_ext_float_atomics, false, 200)

View File

@ -111,7 +111,7 @@
#endif
#pragma OPENCL EXTENSION cles_khr_int64 : enable
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120)
#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 100)
#ifndef cl_khr_gl_msaa_sharing
#error "Missing cl_khr_gl_msaa_sharing define"
#endif