Skip to content

Commit

Permalink
Remove 2 image memory types that was redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
omarahmed1111 committed Mar 18, 2024
1 parent 7ae10a5 commit fdf95cd
Show file tree
Hide file tree
Showing 14 changed files with 119 additions and 77 deletions.
24 changes: 11 additions & 13 deletions include/ur_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -2417,13 +2417,11 @@ typedef enum ur_mem_flag_t {
///////////////////////////////////////////////////////////////////////////////
/// @brief Memory types
typedef enum ur_mem_type_t {
UR_MEM_TYPE_BUFFER = 0, ///< Buffer object
UR_MEM_TYPE_IMAGE2D = 1, ///< 2D image object
UR_MEM_TYPE_IMAGE3D = 2, ///< 3D image object
UR_MEM_TYPE_IMAGE2D_ARRAY = 3, ///< 2D image array object
UR_MEM_TYPE_IMAGE1D = 4, ///< 1D image object
UR_MEM_TYPE_IMAGE1D_ARRAY = 5, ///< 1D image array object
UR_MEM_TYPE_IMAGE1D_BUFFER = 6, ///< 1D image buffer object
UR_MEM_TYPE_IMAGE2D = 0, ///< 2D image object
UR_MEM_TYPE_IMAGE3D = 1, ///< 3D image object
UR_MEM_TYPE_IMAGE2D_ARRAY = 2, ///< 2D image array object
UR_MEM_TYPE_IMAGE1D = 3, ///< 1D image object
UR_MEM_TYPE_IMAGE1D_ARRAY = 4, ///< 1D image array object
/// @cond
UR_MEM_TYPE_FORCE_UINT32 = 0x7fffffff
/// @endcond
Expand Down Expand Up @@ -2553,7 +2551,7 @@ typedef struct ur_image_desc_t {
/// - ::UR_RESULT_ERROR_INVALID_CONTEXT
/// - ::UR_RESULT_ERROR_INVALID_VALUE
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
/// - ::UR_RESULT_ERROR_INVALID_OPERATION
/// - ::UR_RESULT_ERROR_INVALID_HOST_PTR
Expand Down Expand Up @@ -7348,7 +7346,7 @@ urBindlessImagesSampledImageHandleDestroyExp(
/// - ::UR_RESULT_ERROR_INVALID_CONTEXT
/// - ::UR_RESULT_ERROR_INVALID_VALUE
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
/// - ::UR_RESULT_ERROR_INVALID_OPERATION
UR_APIEXPORT ur_result_t UR_APICALL
Expand Down Expand Up @@ -7409,7 +7407,7 @@ urBindlessImagesImageFreeExp(
/// - ::UR_RESULT_ERROR_INVALID_CONTEXT
/// - ::UR_RESULT_ERROR_INVALID_VALUE
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
/// - ::UR_RESULT_ERROR_INVALID_OPERATION
UR_APIEXPORT ur_result_t UR_APICALL
Expand Down Expand Up @@ -7448,7 +7446,7 @@ urBindlessImagesUnsampledImageCreateExp(
/// - ::UR_RESULT_ERROR_INVALID_CONTEXT
/// - ::UR_RESULT_ERROR_INVALID_VALUE
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
/// - ::UR_RESULT_ERROR_INVALID_SAMPLER
/// - ::UR_RESULT_ERROR_INVALID_OPERATION
Expand Down Expand Up @@ -7491,7 +7489,7 @@ urBindlessImagesSampledImageCreateExp(
/// - ::UR_RESULT_ERROR_INVALID_QUEUE
/// - ::UR_RESULT_ERROR_INVALID_VALUE
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
/// - ::UR_RESULT_ERROR_INVALID_OPERATION
UR_APIEXPORT ur_result_t UR_APICALL
Expand Down Expand Up @@ -7652,7 +7650,7 @@ urBindlessImagesImportOpaqueFDExp(
/// - ::UR_RESULT_ERROR_INVALID_CONTEXT
/// - ::UR_RESULT_ERROR_INVALID_VALUE
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
/// - ::UR_RESULT_ERROR_INVALID_OPERATION
/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
Expand Down
6 changes: 0 additions & 6 deletions include/ur_print.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5293,9 +5293,6 @@ inline ur_result_t printFlag<ur_mem_flag_t>(std::ostream &os, uint32_t flag) {
/// std::ostream &
inline std::ostream &operator<<(std::ostream &os, enum ur_mem_type_t value) {
switch (value) {
case UR_MEM_TYPE_BUFFER:
os << "UR_MEM_TYPE_BUFFER";
break;
case UR_MEM_TYPE_IMAGE2D:
os << "UR_MEM_TYPE_IMAGE2D";
break;
Expand All @@ -5311,9 +5308,6 @@ inline std::ostream &operator<<(std::ostream &os, enum ur_mem_type_t value) {
case UR_MEM_TYPE_IMAGE1D_ARRAY:
os << "UR_MEM_TYPE_IMAGE1D_ARRAY";
break;
case UR_MEM_TYPE_IMAGE1D_BUFFER:
os << "UR_MEM_TYPE_IMAGE1D_BUFFER";
break;
default:
os << "unknown enumerator";
break;
Expand Down
10 changes: 5 additions & 5 deletions scripts/core/exp-bindless-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ returns:
- $X_RESULT_ERROR_INVALID_CONTEXT
- $X_RESULT_ERROR_INVALID_VALUE
- $X_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR:
- "`pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`"
- "`pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`"
- $X_RESULT_ERROR_INVALID_IMAGE_SIZE
- $X_RESULT_ERROR_INVALID_OPERATION
--- #--------------------------------------------------------------------------
Expand Down Expand Up @@ -386,7 +386,7 @@ returns:
- $X_RESULT_ERROR_INVALID_CONTEXT
- $X_RESULT_ERROR_INVALID_VALUE
- $X_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR:
- "`pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`"
- "`pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`"
- $X_RESULT_ERROR_INVALID_IMAGE_SIZE
- $X_RESULT_ERROR_INVALID_OPERATION
--- #--------------------------------------------------------------------------
Expand Down Expand Up @@ -426,7 +426,7 @@ returns:
- $X_RESULT_ERROR_INVALID_CONTEXT
- $X_RESULT_ERROR_INVALID_VALUE
- $X_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR:
- "`pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`"
- "`pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`"
- $X_RESULT_ERROR_INVALID_IMAGE_SIZE
- $X_RESULT_ERROR_INVALID_SAMPLER
- $X_RESULT_ERROR_INVALID_OPERATION
Expand Down Expand Up @@ -489,7 +489,7 @@ returns:
- $X_RESULT_ERROR_INVALID_QUEUE
- $X_RESULT_ERROR_INVALID_VALUE
- $X_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR:
- "`pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`"
- "`pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`"
- $X_RESULT_ERROR_INVALID_IMAGE_SIZE
- $X_RESULT_ERROR_INVALID_OPERATION
--- #--------------------------------------------------------------------------
Expand Down Expand Up @@ -626,7 +626,7 @@ returns:
- $X_RESULT_ERROR_INVALID_CONTEXT
- $X_RESULT_ERROR_INVALID_VALUE
- $X_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR:
- "`pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`"
- "`pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`"
- $X_RESULT_ERROR_INVALID_IMAGE_SIZE
- $X_RESULT_ERROR_INVALID_OPERATION
- $X_RESULT_ERROR_OUT_OF_RESOURCES
Expand Down
6 changes: 1 addition & 5 deletions scripts/core/memory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ desc: "Memory types"
class: $xMem
name: $x_mem_type_t
etors:
- name: BUFFER
desc: "Buffer object"
- name: IMAGE2D
desc: "2D image object"
- name: IMAGE3D
Expand All @@ -53,8 +51,6 @@ etors:
desc: "1D image object"
- name: IMAGE1D_ARRAY
desc: "1D image array object"
- name: IMAGE1D_BUFFER
desc: "1D image buffer object"
--- #--------------------------------------------------------------------------
type: enum
desc: "Memory Information type"
Expand Down Expand Up @@ -236,7 +232,7 @@ returns:
- $X_RESULT_ERROR_INVALID_CONTEXT
- $X_RESULT_ERROR_INVALID_VALUE
- $X_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR:
- "`pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`"
- "`pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`"
- $X_RESULT_ERROR_INVALID_IMAGE_SIZE
- $X_RESULT_ERROR_INVALID_OPERATION
- $X_RESULT_ERROR_INVALID_HOST_PTR:
Expand Down
2 changes: 1 addition & 1 deletion source/adapters/cuda/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemImageCreate(

UR_ASSERT(pImageDesc->stype == UR_STRUCTURE_TYPE_IMAGE_DESC,
UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR);
UR_ASSERT(pImageDesc->type <= UR_MEM_TYPE_IMAGE1D_BUFFER,
UR_ASSERT(pImageDesc->type <= UR_MEM_TYPE_IMAGE1D_ARRAY,
UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR);
UR_ASSERT(pImageDesc->numMipLevel == 0,
UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR);
Expand Down
24 changes: 23 additions & 1 deletion source/adapters/hip/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,26 @@ size_t imageElementByteSize(hipArray_Format ArrayFormat) {
return 0;
}

ur_result_t
checkSupportedImageChannelType(ur_image_channel_type_t ImageChannelType) {
switch (ImageChannelType) {
case UR_IMAGE_CHANNEL_TYPE_UNORM_INT8:
case UR_IMAGE_CHANNEL_TYPE_UNSIGNED_INT8:
case UR_IMAGE_CHANNEL_TYPE_SIGNED_INT8:
case UR_IMAGE_CHANNEL_TYPE_UNORM_INT16:
case UR_IMAGE_CHANNEL_TYPE_UNSIGNED_INT16:
case UR_IMAGE_CHANNEL_TYPE_SIGNED_INT16:
case UR_IMAGE_CHANNEL_TYPE_HALF_FLOAT:
case UR_IMAGE_CHANNEL_TYPE_UNSIGNED_INT32:
case UR_IMAGE_CHANNEL_TYPE_SIGNED_INT32:
case UR_IMAGE_CHANNEL_TYPE_FLOAT:
return UR_RESULT_SUCCESS;
default:
return UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT;
}
return UR_RESULT_SUCCESS;
}

/// Decreases the reference count of the Mem object.
/// If this is zero, calls the relevant HIP Free function
/// \return UR_RESULT_SUCCESS unless deallocation error
Expand Down Expand Up @@ -339,7 +359,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemImageCreate(

UR_ASSERT(pImageDesc->stype == UR_STRUCTURE_TYPE_IMAGE_DESC,
UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR);
UR_ASSERT(pImageDesc->type <= UR_MEM_TYPE_IMAGE1D_BUFFER,
UR_ASSERT(pImageDesc->type <= UR_MEM_TYPE_IMAGE1D_ARRAY,
UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR);
UR_ASSERT(pImageDesc->numMipLevel == 0,
UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR);
Expand All @@ -357,6 +377,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemImageCreate(
UR_ASSERT(pImageFormat->channelOrder == UR_IMAGE_CHANNEL_ORDER_RGBA,
UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT);

UR_CHECK_ERROR(checkSupportedImageChannelType(pImageFormat->channelType));

auto URMemObj = std::unique_ptr<ur_mem_handle_t_>(
new ur_mem_handle_t_{hContext, flags, *pImageFormat, *pImageDesc, pHost});

Expand Down
2 changes: 2 additions & 0 deletions source/adapters/hip/memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ struct SurfaceMem {
ArrayDesc.Format = HIP_AD_FORMAT_UNSIGNED_INT8;
PixelTypeSizeBytes = 1;
break;
case UR_IMAGE_CHANNEL_TYPE_SNORM_INT8:
case UR_IMAGE_CHANNEL_TYPE_SIGNED_INT8:
ArrayDesc.Format = HIP_AD_FORMAT_SIGNED_INT8;
PixelTypeSizeBytes = 1;
Expand All @@ -220,6 +221,7 @@ struct SurfaceMem {
ArrayDesc.Format = HIP_AD_FORMAT_UNSIGNED_INT16;
PixelTypeSizeBytes = 2;
break;
case UR_IMAGE_CHANNEL_TYPE_SNORM_INT16:
case UR_IMAGE_CHANNEL_TYPE_SIGNED_INT16:
ArrayDesc.Format = HIP_AD_FORMAT_SIGNED_INT16;
PixelTypeSizeBytes = 2;
Expand Down
2 changes: 1 addition & 1 deletion source/adapters/level_zero/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesImageCopyExp(
UR_RESULT_ERROR_INVALID_NULL_POINTER);
UR_ASSERT(!(UR_EXP_IMAGE_COPY_FLAGS_MASK & imageCopyFlags),
UR_RESULT_ERROR_INVALID_ENUMERATION);
UR_ASSERT(!(pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type),
UR_ASSERT(!(pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type),
UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR);

ZeStruct<ze_image_desc_t> ZeImageDesc;
Expand Down
6 changes: 0 additions & 6 deletions source/adapters/opencl/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ cl_image_desc mapURImageDescToCL(const ur_image_desc_t *PImageDesc) {
cl_adapter::cast<cl_mem_object_type>(PImageDesc->type);

switch (PImageDesc->type) {
case UR_MEM_TYPE_BUFFER:
CLImageDesc.image_type = CL_MEM_OBJECT_BUFFER;
break;
case UR_MEM_TYPE_IMAGE2D:
CLImageDesc.image_type = CL_MEM_OBJECT_IMAGE2D;
break;
Expand All @@ -141,9 +138,6 @@ cl_image_desc mapURImageDescToCL(const ur_image_desc_t *PImageDesc) {
case UR_MEM_TYPE_IMAGE1D_ARRAY:
CLImageDesc.image_type = CL_MEM_OBJECT_IMAGE1D_ARRAY;
break;
case UR_MEM_TYPE_IMAGE1D_BUFFER:
CLImageDesc.image_type = CL_MEM_OBJECT_IMAGE1D_BUFFER;
break;
default:
CLImageDesc.image_type = -1;
break;
Expand Down
12 changes: 6 additions & 6 deletions source/loader/layers/validation/ur_valddi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ __urdlllocal ur_result_t UR_APICALL urMemImageCreate(
return UR_RESULT_ERROR_INVALID_ENUMERATION;
}

if (pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type) {
if (pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type) {
return UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR;
}

Expand Down Expand Up @@ -6822,7 +6822,7 @@ __urdlllocal ur_result_t UR_APICALL urBindlessImagesImageAllocateExp(
return UR_RESULT_ERROR_INVALID_NULL_POINTER;
}

if (pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type) {
if (pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type) {
return UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR;
}
}
Expand Down Expand Up @@ -6936,7 +6936,7 @@ __urdlllocal ur_result_t UR_APICALL urBindlessImagesUnsampledImageCreateExp(
return UR_RESULT_ERROR_INVALID_NULL_POINTER;
}

if (pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type) {
if (pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type) {
return UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR;
}
}
Expand Down Expand Up @@ -7012,7 +7012,7 @@ __urdlllocal ur_result_t UR_APICALL urBindlessImagesSampledImageCreateExp(
return UR_RESULT_ERROR_INVALID_NULL_POINTER;
}

if (pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type) {
if (pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type) {
return UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR;
}
}
Expand Down Expand Up @@ -7104,7 +7104,7 @@ __urdlllocal ur_result_t UR_APICALL urBindlessImagesImageCopyExp(
return UR_RESULT_ERROR_INVALID_ENUMERATION;
}

if (pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type) {
if (pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type) {
return UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR;
}

Expand Down Expand Up @@ -7357,7 +7357,7 @@ __urdlllocal ur_result_t UR_APICALL urBindlessImagesMapExternalArrayExp(
return UR_RESULT_ERROR_INVALID_NULL_POINTER;
}

if (pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type) {
if (pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type) {
return UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR;
}
}
Expand Down
12 changes: 6 additions & 6 deletions source/loader/ur_libapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@ ur_result_t UR_APICALL urContextSetExtendedDeleter(
/// - ::UR_RESULT_ERROR_INVALID_CONTEXT
/// - ::UR_RESULT_ERROR_INVALID_VALUE
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
/// - ::UR_RESULT_ERROR_INVALID_OPERATION
/// - ::UR_RESULT_ERROR_INVALID_HOST_PTR
Expand Down Expand Up @@ -6414,7 +6414,7 @@ ur_result_t UR_APICALL urBindlessImagesSampledImageHandleDestroyExp(
/// - ::UR_RESULT_ERROR_INVALID_CONTEXT
/// - ::UR_RESULT_ERROR_INVALID_VALUE
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
/// - ::UR_RESULT_ERROR_INVALID_OPERATION
ur_result_t UR_APICALL urBindlessImagesImageAllocateExp(
Expand Down Expand Up @@ -6497,7 +6497,7 @@ ur_result_t UR_APICALL urBindlessImagesImageFreeExp(
/// - ::UR_RESULT_ERROR_INVALID_CONTEXT
/// - ::UR_RESULT_ERROR_INVALID_VALUE
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
/// - ::UR_RESULT_ERROR_INVALID_OPERATION
ur_result_t UR_APICALL urBindlessImagesUnsampledImageCreateExp(
Expand Down Expand Up @@ -6550,7 +6550,7 @@ ur_result_t UR_APICALL urBindlessImagesUnsampledImageCreateExp(
/// - ::UR_RESULT_ERROR_INVALID_CONTEXT
/// - ::UR_RESULT_ERROR_INVALID_VALUE
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
/// - ::UR_RESULT_ERROR_INVALID_SAMPLER
/// - ::UR_RESULT_ERROR_INVALID_OPERATION
Expand Down Expand Up @@ -6606,7 +6606,7 @@ ur_result_t UR_APICALL urBindlessImagesSampledImageCreateExp(
/// - ::UR_RESULT_ERROR_INVALID_QUEUE
/// - ::UR_RESULT_ERROR_INVALID_VALUE
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
/// - ::UR_RESULT_ERROR_INVALID_OPERATION
ur_result_t UR_APICALL urBindlessImagesImageCopyExp(
Expand Down Expand Up @@ -6829,7 +6829,7 @@ ur_result_t UR_APICALL urBindlessImagesImportOpaqueFDExp(
/// - ::UR_RESULT_ERROR_INVALID_CONTEXT
/// - ::UR_RESULT_ERROR_INVALID_VALUE
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_BUFFER < pImageDesc->type`
/// + `pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`
/// - ::UR_RESULT_ERROR_INVALID_IMAGE_SIZE
/// - ::UR_RESULT_ERROR_INVALID_OPERATION
/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
Expand Down
Loading

0 comments on commit fdf95cd

Please sign in to comment.