File tree 5 files changed +15
-0
lines changed
5 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -7665,6 +7665,7 @@ urBindlessImagesImageFreeExp(
7665
7665
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`
7666
7666
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
7667
7667
/// - ::UR_RESULT_ERROR_INVALID_OPERATION
7668
+ /// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
7668
7669
UR_APIEXPORT ur_result_t UR_APICALL
7669
7670
urBindlessImagesUnsampledImageCreateExp(
7670
7671
ur_context_handle_t hContext, ///< [in] handle of the context object
@@ -7703,6 +7704,7 @@ urBindlessImagesUnsampledImageCreateExp(
7703
7704
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
7704
7705
/// - ::UR_RESULT_ERROR_INVALID_SAMPLER
7705
7706
/// - ::UR_RESULT_ERROR_INVALID_OPERATION
7707
+ /// - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
7706
7708
UR_APIEXPORT ur_result_t UR_APICALL
7707
7709
urBindlessImagesSampledImageCreateExp(
7708
7710
ur_context_handle_t hContext, ///< [in] handle of the context object
Original file line number Diff line number Diff line change @@ -469,6 +469,7 @@ returns:
469
469
- " `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`"
470
470
- $X_RESULT_ERROR_INVALID_IMAGE_SIZE
471
471
- $X_RESULT_ERROR_INVALID_OPERATION
472
+ - $X_RESULT_ERROR_ADAPTER_SPECIFIC
472
473
--- # --------------------------------------------------------------------------
473
474
type : function
474
475
desc : " Create a bindless sampled image handle"
@@ -507,6 +508,7 @@ returns:
507
508
- $X_RESULT_ERROR_INVALID_IMAGE_SIZE
508
509
- $X_RESULT_ERROR_INVALID_SAMPLER
509
510
- $X_RESULT_ERROR_INVALID_OPERATION
511
+ - $X_RESULT_ERROR_ADAPTER_SPECIFIC
510
512
--- # --------------------------------------------------------------------------
511
513
type : function
512
514
desc : " Copy image data Host to Device or Device to Host"
Original file line number Diff line number Diff line change @@ -311,7 +311,14 @@ ur_result_t urTextureCreate(ur_sampler_handle_t hSampler,
311
311
ur_exp_sampler_cubemap_filter_mode_t CubemapFilterModeProp =
312
312
hSampler->getCubemapFilterMode ();
313
313
if (CubemapFilterModeProp == UR_EXP_SAMPLER_CUBEMAP_FILTER_MODE_SEAMLESS) {
314
+ #if CUDA_VERSION >= 11060
314
315
ImageTexDesc.flags |= CU_TRSF_SEAMLESS_CUBEMAP;
316
+ #else
317
+ setErrorMessage (" The " UR_EXP_SAMPLER_CUBEMAP_FILTER_MODE_SEAMLESS
318
+ " feature requires cuda 11.6 or later." ,
319
+ UR_RESULT_ERROR_ADAPTER_SPECIFIC);
320
+ return UR_RESULT_ERROR_ADAPTER_SPECIFIC;
321
+ #endif
315
322
}
316
323
317
324
CUtexObject Texture;
Original file line number Diff line number Diff line change @@ -6702,6 +6702,7 @@ ur_result_t UR_APICALL urBindlessImagesImageFreeExp(
6702
6702
// / + `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`
6703
6703
// / - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
6704
6704
// / - ::UR_RESULT_ERROR_INVALID_OPERATION
6705
+ // / - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
6705
6706
ur_result_t UR_APICALL urBindlessImagesUnsampledImageCreateExp (
6706
6707
ur_context_handle_t hContext, // /< [in] handle of the context object
6707
6708
ur_device_handle_t hDevice, // /< [in] handle of the device object
@@ -6754,6 +6755,7 @@ ur_result_t UR_APICALL urBindlessImagesUnsampledImageCreateExp(
6754
6755
// / - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
6755
6756
// / - ::UR_RESULT_ERROR_INVALID_SAMPLER
6756
6757
// / - ::UR_RESULT_ERROR_INVALID_OPERATION
6758
+ // / - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
6757
6759
ur_result_t UR_APICALL urBindlessImagesSampledImageCreateExp (
6758
6760
ur_context_handle_t hContext, // /< [in] handle of the context object
6759
6761
ur_device_handle_t hDevice, // /< [in] handle of the device object
Original file line number Diff line number Diff line change @@ -5724,6 +5724,7 @@ ur_result_t UR_APICALL urBindlessImagesImageFreeExp(
5724
5724
// / + `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`
5725
5725
// / - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
5726
5726
// / - ::UR_RESULT_ERROR_INVALID_OPERATION
5727
+ // / - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
5727
5728
ur_result_t UR_APICALL urBindlessImagesUnsampledImageCreateExp (
5728
5729
ur_context_handle_t hContext, // /< [in] handle of the context object
5729
5730
ur_device_handle_t hDevice, // /< [in] handle of the device object
@@ -5767,6 +5768,7 @@ ur_result_t UR_APICALL urBindlessImagesUnsampledImageCreateExp(
5767
5768
// / - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
5768
5769
// / - ::UR_RESULT_ERROR_INVALID_SAMPLER
5769
5770
// / - ::UR_RESULT_ERROR_INVALID_OPERATION
5771
+ // / - ::UR_RESULT_ERROR_ADAPTER_SPECIFIC
5770
5772
ur_result_t UR_APICALL urBindlessImagesSampledImageCreateExp (
5771
5773
ur_context_handle_t hContext, // /< [in] handle of the context object
5772
5774
ur_device_handle_t hDevice, // /< [in] handle of the device object
You can’t perform that action at this time.
0 commit comments