@@ -813,9 +813,9 @@ get_image_memory_support(const image_descriptor &imageDescriptor,
813813 const sycl::context &syclContext) {
814814 std::shared_ptr<sycl::detail::device_impl> DevImpl =
815815 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 ();
819819
820820 ur_image_desc_t urDesc;
821821 ur_image_format_t urFormat;
@@ -825,15 +825,15 @@ get_image_memory_support(const image_descriptor &imageDescriptor,
825825 Adapter->call <sycl::errc::runtime,
826826 sycl::detail::UrApiKind::
827827 urBindlessImagesGetImageMemoryHandleTypeSupportExp>(
828- CtxImpl-> getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
828+ CtxImpl. getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
829829 ur_exp_image_mem_type_t ::UR_EXP_IMAGE_MEM_TYPE_USM_POINTER,
830830 &supportsPointerAllocation);
831831
832832 ur_bool_t supportsOpaqueAllocation{0 };
833833 Adapter->call <sycl::errc::runtime,
834834 sycl::detail::UrApiKind::
835835 urBindlessImagesGetImageMemoryHandleTypeSupportExp>(
836- CtxImpl-> getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
836+ CtxImpl. getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
837837 ur_exp_image_mem_type_t ::UR_EXP_IMAGE_MEM_TYPE_OPAQUE_HANDLE,
838838 &supportsOpaqueAllocation);
839839
@@ -864,9 +864,9 @@ __SYCL_EXPORT bool is_image_handle_supported<unsampled_image_handle>(
864864 const sycl::device &syclDevice, const sycl::context &syclContext) {
865865 std::shared_ptr<sycl::detail::device_impl> DevImpl =
866866 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 ();
870870
871871 ur_image_desc_t urDesc;
872872 ur_image_format_t urFormat;
@@ -881,7 +881,7 @@ __SYCL_EXPORT bool is_image_handle_supported<unsampled_image_handle>(
881881 Adapter->call <sycl::errc::runtime,
882882 sycl::detail::UrApiKind::
883883 urBindlessImagesGetImageUnsampledHandleSupportExp>(
884- CtxImpl-> getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
884+ CtxImpl. getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
885885 memHandleType, &supportsUnsampledHandle);
886886
887887 return supportsUnsampledHandle;
@@ -904,9 +904,9 @@ __SYCL_EXPORT bool is_image_handle_supported<sampled_image_handle>(
904904 const sycl::device &syclDevice, const sycl::context &syclContext) {
905905 std::shared_ptr<sycl::detail::device_impl> DevImpl =
906906 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 ();
910910
911911 ur_image_desc_t urDesc;
912912 ur_image_format_t urFormat;
@@ -921,7 +921,7 @@ __SYCL_EXPORT bool is_image_handle_supported<sampled_image_handle>(
921921 Adapter->call <
922922 sycl::errc::runtime,
923923 sycl::detail::UrApiKind::urBindlessImagesGetImageSampledHandleSupportExp>(
924- CtxImpl-> getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
924+ CtxImpl. getHandleRef (), DevImpl->getHandleRef (), &urDesc, &urFormat,
925925 memHandleType, &supportsSampledHandle);
926926
927927 return supportsSampledHandle;
0 commit comments