SWDEV-336542 - Return InvalidValue error for hipArrayCubemap flag.

Change-Id: I4ca996d7643158d5ccf8cb48ceaead3ceaf9aedf


[ROCm/clr commit: 0ad84364e0]
This commit is contained in:
Jaydeep
2022-06-15 11:20:04 +00:00
committed by Jaydeepkumar Patel
orang tua 8b4d8bdee4
melakukan 4185c568da
+4 -1
Melihat File
@@ -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;
}