@@ -813,9 +813,9 @@ get_image_memory_support(const image_descriptor &imageDescriptor,
813
813
const sycl::context &syclContext) {
814
814
std::shared_ptr<sycl::detail::device_impl> DevImpl =
815
815
sycl::detail::getSyclObjImpl (syclDevice);
816
- std::shared_ptr< sycl::detail::context_impl> CtxImpl =
817
- sycl::detail::getSyclObjImpl (syclContext);
818
- const sycl::detail::AdapterPtr &Adapter = CtxImpl-> getAdapter ();
816
+ sycl::detail::context_impl & CtxImpl =
817
+ * sycl::detail::getSyclObjImpl (syclContext);
818
+ const sycl::detail::AdapterPtr &Adapter = CtxImpl. getAdapter ();
819
819
820
820
ur_image_desc_t urDesc;
821
821
ur_image_format_t urFormat;
@@ -825,15 +825,15 @@ get_image_memory_support(const image_descriptor &imageDescriptor,
825
825
Adapter->call <sycl::errc::runtime,
826
826
sycl::detail::UrApiKind::
827
827
urBindlessImagesGetImageMemoryHandleTypeSupportExp>(
828
- CtxImpl-> getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
828
+ CtxImpl. getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
829
829
ur_exp_image_mem_type_t ::UR_EXP_IMAGE_MEM_TYPE_USM_POINTER,
830
830
&supportsPointerAllocation);
831
831
832
832
ur_bool_t supportsOpaqueAllocation{0 };
833
833
Adapter->call <sycl::errc::runtime,
834
834
sycl::detail::UrApiKind::
835
835
urBindlessImagesGetImageMemoryHandleTypeSupportExp>(
836
- CtxImpl-> getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
836
+ CtxImpl. getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
837
837
ur_exp_image_mem_type_t ::UR_EXP_IMAGE_MEM_TYPE_OPAQUE_HANDLE,
838
838
&supportsOpaqueAllocation);
839
839
@@ -864,9 +864,9 @@ __SYCL_EXPORT bool is_image_handle_supported<unsampled_image_handle>(
864
864
const sycl::device &syclDevice, const sycl::context &syclContext) {
865
865
std::shared_ptr<sycl::detail::device_impl> DevImpl =
866
866
sycl::detail::getSyclObjImpl (syclDevice);
867
- std::shared_ptr< sycl::detail::context_impl> CtxImpl =
868
- sycl::detail::getSyclObjImpl (syclContext);
869
- const sycl::detail::AdapterPtr &Adapter = CtxImpl-> getAdapter ();
867
+ sycl::detail::context_impl & CtxImpl =
868
+ * sycl::detail::getSyclObjImpl (syclContext);
869
+ const sycl::detail::AdapterPtr &Adapter = CtxImpl. getAdapter ();
870
870
871
871
ur_image_desc_t urDesc;
872
872
ur_image_format_t urFormat;
@@ -881,7 +881,7 @@ __SYCL_EXPORT bool is_image_handle_supported<unsampled_image_handle>(
881
881
Adapter->call <sycl::errc::runtime,
882
882
sycl::detail::UrApiKind::
883
883
urBindlessImagesGetImageUnsampledHandleSupportExp>(
884
- CtxImpl-> getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
884
+ CtxImpl. getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
885
885
memHandleType, &supportsUnsampledHandle);
886
886
887
887
return supportsUnsampledHandle;
@@ -904,9 +904,9 @@ __SYCL_EXPORT bool is_image_handle_supported<sampled_image_handle>(
904
904
const sycl::device &syclDevice, const sycl::context &syclContext) {
905
905
std::shared_ptr<sycl::detail::device_impl> DevImpl =
906
906
sycl::detail::getSyclObjImpl (syclDevice);
907
- std::shared_ptr< sycl::detail::context_impl> CtxImpl =
908
- sycl::detail::getSyclObjImpl (syclContext);
909
- const sycl::detail::AdapterPtr &Adapter = CtxImpl-> getAdapter ();
907
+ sycl::detail::context_impl & CtxImpl =
908
+ * sycl::detail::getSyclObjImpl (syclContext);
909
+ const sycl::detail::AdapterPtr &Adapter = CtxImpl. getAdapter ();
910
910
911
911
ur_image_desc_t urDesc;
912
912
ur_image_format_t urFormat;
@@ -921,7 +921,7 @@ __SYCL_EXPORT bool is_image_handle_supported<sampled_image_handle>(
921
921
Adapter->call <
922
922
sycl::errc::runtime,
923
923
sycl::detail::UrApiKind::urBindlessImagesGetImageSampledHandleSupportExp>(
924
- CtxImpl-> getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
924
+ CtxImpl. getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
925
925
memHandleType, &supportsSampledHandle);
926
926
927
927
return supportsSampledHandle;
0 commit comments