diff --git a/api/hip/hip_memory.cpp b/api/hip/hip_memory.cpp index 49895e67e9..7e4b41aa5a 100644 --- a/api/hip/hip_memory.cpp +++ b/api/hip/hip_memory.cpp @@ -505,12 +505,12 @@ hipError_t hipMalloc3DArray(hipArray_t* array, const struct hipChannelFormatDesc // Dummy flags check switch (flags) { - case hipArrayLayered: case hipArrayCubemap: case hipArraySurfaceLoadStore: case hipArrayTextureGather: assert(0 && "Unspported"); break; + case hipArrayLayered: case hipArrayDefault: default: break; diff --git a/api/hip/hip_texture.cpp b/api/hip/hip_texture.cpp index a4712de1cb..8d7f7945bb 100644 --- a/api/hip/hip_texture.cpp +++ b/api/hip/hip_texture.cpp @@ -581,6 +581,7 @@ hipError_t ihipBindTextureToArrayImpl(TlsData* tls, int dim, enum hipTextureRead clType = CL_MEM_OBJECT_IMAGE2D; break; case 3: + case hipTextureType2DLayered: clType = CL_MEM_OBJECT_IMAGE3D; break; default: