You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validation of ur_mem_type_t, which is extended by the experimental bindless images feature, does not correctly validate the extended enumeration UR_MEM_TYPE_IMAGE_CUBEMAP_EXP.
if (pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type) {
return UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR;
}
This results in valid usage of the bindless images entry points which take a ur_mem_type_t returning the UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR erroneously.
Given the gap in valid values, validation should instead look like this:
if (pImageDesc) {
switch (pImageDesc->type) {
case UR_MEM_TYPE_IMAGE2D:
case UR_MEM_TYPE_IMAGE3D:
case UR_MEM_TYPE_IMAGE2D_ARRAY:
case UR_MEM_TYPE_IMAGE1D:
case UR_MEM_TYPE_IMAGE1D_ARRAY:
case UR_MEM_TYPE_IMAGE2D:
case UR_MEM_TYPE_IMAGE_CUBEMAP_EXP:
break;
default:
return UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR;
}
}
The text was updated successfully, but these errors were encountered:
Validation of
ur_mem_type_t
, which is extended by the experimental bindless images feature, does not correctly validate the extended enumerationUR_MEM_TYPE_IMAGE_CUBEMAP_EXP
.This results in valid usage of the bindless images entry points which take a
ur_mem_type_t
returning theUR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR
erroneously.Given the gap in valid values, validation should instead look like this:
The text was updated successfully, but these errors were encountered: