Skip to content

Commit

Permalink
Update OpenCL headers.
Browse files Browse the repository at this point in the history
CL_DEPTH_STENCIL and CL_UNORM_INT24 have been moved into <CL/cl_gl.h>.
As these were only used in error reporting and we do not support these
in libimg either, just leave them out.
  • Loading branch information
hvdijk committed Jul 9, 2024
1 parent 4f54350 commit 50f76ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ set(CMAKE_CXX_EXTENSIONS ON)
FetchContent_Declare(
OpenCLHeaders
GIT_REPOSITORY https://github.com/KhronosGroup/OpenCL-Headers.git
GIT_TAG 68d98613113259dbcd4c05b2039bb758766bf2ac
GIT_TAG v2024.05.08
)
FetchContent_MakeAvailable(OpenCLHeaders)

Expand Down
4 changes: 2 additions & 2 deletions source/cl/test/UnitCL/source/Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ bool UCL::isImageFormatSupported(cl_context context,
CASE(CL_RGx);
CASE(CL_RGBx);
CASE(CL_DEPTH);
CASE(CL_DEPTH_STENCIL);
// CASE(CL_DEPTH_STENCIL);
default:
return "UNKNOWN CHANNEL ORDER";
}
Expand All @@ -801,7 +801,7 @@ bool UCL::isImageFormatSupported(cl_context context,
CASE(CL_UNSIGNED_INT32);
CASE(CL_HALF_FLOAT);
CASE(CL_FLOAT);
CASE(CL_UNORM_INT24);
// CASE(CL_UNORM_INT24);
default:
return "UNKNOWN CHANNEL DATA TYPE";
}
Expand Down

0 comments on commit 50f76ca

Please sign in to comment.