@@ -595,7 +595,8 @@ urBindlessImagesSampledImageHandleDestroyExp(ur_context_handle_t hContext,
595
595
ur_device_handle_t hDevice,
596
596
ur_exp_image_handle_t hImage) {
597
597
// Sampled image is a combination of unsampled image and sampler.
598
- urBindlessImagesUnsampledImageHandleDestroyExp (hContext, hDevice, hImage);
598
+ UR_CALL (urBindlessImagesUnsampledImageHandleDestroyExp (hContext, hDevice,
599
+ hImage));
599
600
600
601
return UR_RESULT_SUCCESS;
601
602
}
@@ -695,11 +696,17 @@ UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesUnsampledImageCreateExp(
695
696
*phMem = nullptr ;
696
697
}
697
698
} else {
698
- ze_image_pitched_exp_desc_t ZeImagePitchedDesc;
699
- ZeImagePitchedDesc.stype = ZE_STRUCTURE_TYPE_PITCHED_IMAGE_EXP_DESC;
700
- ZeImagePitchedDesc.pNext = nullptr ;
701
- ZeImagePitchedDesc.ptr = hImageMem;
702
- ZeImageDesc.pNext = &ZeImagePitchedDesc;
699
+ ze_image_pitched_exp_desc_t PitchedDesc;
700
+ PitchedDesc.stype = ZE_STRUCTURE_TYPE_PITCHED_IMAGE_EXP_DESC;
701
+ PitchedDesc.pNext = nullptr ;
702
+ PitchedDesc.ptr = hImageMem;
703
+
704
+ ze_image_bindless_exp_desc_t BindlessDesc;
705
+ BindlessDesc.stype = ZE_STRUCTURE_TYPE_BINDLESS_IMAGE_EXP_DESC;
706
+ BindlessDesc.pNext = &PitchedDesc;
707
+ BindlessDesc.flags = ZE_IMAGE_BINDLESS_EXP_FLAG_BINDLESS;
708
+
709
+ ZeImageDesc.pNext = &BindlessDesc;
703
710
704
711
ze_image_handle_t ZeImage;
705
712
ZE2UR_CALL (zeImageCreate, (hContext->ZeContext , hDevice->ZeDevice ,
@@ -747,6 +754,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesSampledImageCreateExp(
747
754
748
755
UR_CALL (urBindlessImagesUnsampledImageCreateExp (
749
756
hContext, hDevice, hImageMem, pImageFormat, pImageDesc, phMem, phImage));
757
+
750
758
struct combined_sampled_image_handle {
751
759
uint64_t raw_image_handle;
752
760
uint64_t raw_sampler_handle;
0 commit comments