diff --git a/rocclr/runtime/device/cpu/cpusettings.cpp b/rocclr/runtime/device/cpu/cpusettings.cpp index 14832f95f0..2c407d1dad 100644 --- a/rocclr/runtime/device/cpu/cpusettings.cpp +++ b/rocclr/runtime/device/cpu/cpusettings.cpp @@ -53,6 +53,7 @@ Settings::create() partialDispatch_ = true; enableExtension(ClKhrSubGroups); supportDepthsRGB_ = true; + enableExtension(ClKhrDepthImages); } // Map CPUID feature bits to our own feature bits diff --git a/rocclr/runtime/device/device.hpp b/rocclr/runtime/device/device.hpp index 66930f93f6..ba4eee7643 100644 --- a/rocclr/runtime/device/device.hpp +++ b/rocclr/runtime/device/device.hpp @@ -108,6 +108,7 @@ enum OclExtensions { ClKhrSpir, ClKhrSubGroups, ClKhrGlEvent, + ClKhrDepthImages, ClExtTotal }; @@ -148,6 +149,7 @@ OclExtensionsString[] = { "cl_khr_spir ", "cl_khr_subgroups ", "cl_khr_gl_event ", + "cl_khr_depth_images ", NULL }; diff --git a/rocclr/runtime/device/gpu/gpusettings.cpp b/rocclr/runtime/device/gpu/gpusettings.cpp index 2390ca06ba..2c81e2e42f 100644 --- a/rocclr/runtime/device/gpu/gpusettings.cpp +++ b/rocclr/runtime/device/gpu/gpusettings.cpp @@ -435,6 +435,7 @@ Settings::create( // Enable some OpenCL 2.0 extensions if (oclVersion_ >= OpenCL20) { enableExtension(ClKhrSubGroups); + enableExtension(ClKhrDepthImages); } // Override current device settings