@@ -131,8 +131,7 @@ cudaToUrImageChannelFormat(CUarray_format cuda_format,
131
131
}
132
132
}
133
133
134
- ur_result_t urTextureCreate (ur_context_handle_t hContext,
135
- ur_sampler_handle_t hSampler,
134
+ ur_result_t urTextureCreate (ur_sampler_handle_t hSampler,
136
135
const ur_image_desc_t *pImageDesc,
137
136
CUDA_RESOURCE_DESC ResourceDesc,
138
137
ur_exp_image_handle_t *phRetImage) {
@@ -147,7 +146,7 @@ ur_result_t urTextureCreate(ur_context_handle_t hContext,
147
146
// / | 1 | filter mode
148
147
// / | 0 | normalize coords
149
148
CUDA_TEXTURE_DESC ImageTexDesc = {};
150
- CUaddress_mode AddrMode;
149
+ CUaddress_mode AddrMode = {} ;
151
150
ur_sampler_addressing_mode_t AddrModeProp = hSampler->getAddressingMode ();
152
151
if (AddrModeProp == (UR_SAMPLER_ADDRESSING_MODE_CLAMP_TO_EDGE -
153
152
UR_SAMPLER_ADDRESSING_MODE_NONE)) {
@@ -465,8 +464,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesSampledImageCreateExp(
465
464
return UR_RESULT_ERROR_INVALID_VALUE;
466
465
}
467
466
468
- UR_CHECK_ERROR (urTextureCreate (hContext, hSampler, pImageDesc,
469
- image_res_desc, phImage));
467
+ UR_CHECK_ERROR (
468
+ urTextureCreate (hSampler, pImageDesc, image_res_desc, phImage));
470
469
471
470
auto urMemObj = std::unique_ptr<ur_mem_handle_t_>(new ur_mem_handle_t_{
472
471
hContext, (CUarray)hImageMem, (CUtexObject)*phImage, hSampler,
0 commit comments