Skip to content

Commit c290f3c

Browse files
author
Pavel Samolysov
authored
[SYCL] Move the SYCL_EXT_ONEAPI_SRGB macro to feature_test.hpp.in (#5051)
All the extension feature test macros are defined in the feature_test.hpp.in file.
1 parent c906a67 commit c290f3c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

sycl/include/CL/sycl/feature_test.hpp.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ namespace sycl {
4343
#define SYCL_EXT_ONEAPI_ND_RANGE_REDUCTIONS 1
4444
#define SYCL_EXT_ONEAPI_DEFAULT_CONTEXT 1
4545
#define SYCL_EXT_ONEAPI_USE_PINNED_HOST_MEMORY_PROPERTY 1
46+
#define SYCL_EXT_ONEAPI_SRGB 1
4647
#define SYCL_EXT_ONEAPI_SUB_GROUP 1
4748
#define SYCL_EXT_INTEL_BF16_CONVERSION 1
4849
#define SYCL_EXT_INTEL_BITCAST 1

sycl/include/CL/sycl/image.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
#include <cstddef>
1818
#include <sycl/ext/oneapi/accessor_property_list.hpp>
1919

20-
// sRGB Extension Support
21-
#define SYCL_EXT_ONEAPI_SRGB 1
22-
2320
__SYCL_INLINE_NAMESPACE(cl) {
2421
namespace sycl {
2522

0 commit comments

Comments
 (0)