diff --git a/projects/clr/hipamd/src/hip_memory.cpp b/projects/clr/hipamd/src/hip_memory.cpp index 47b1311255..a3a1b19c2d 100644 --- a/projects/clr/hipamd/src/hip_memory.cpp +++ b/projects/clr/hipamd/src/hip_memory.cpp @@ -918,8 +918,11 @@ hipError_t ihipArrayCreate(hipArray** array, return hipErrorInvalidValue; } + if (pAllocateArray->Flags & hipArrayCubemap) { + return hipErrorInvalidValue; + } + if ((pAllocateArray->Flags & hipArraySurfaceLoadStore) || - (pAllocateArray->Flags & hipArrayCubemap) || (pAllocateArray->Flags & hipArrayTextureGather)) { return hipErrorNotSupported; }