SWDEV-336542 - Return InvalidValue error for hipArrayCubemap flag.

Change-Id: I4ca996d7643158d5ccf8cb48ceaead3ceaf9aedf
Dieser Commit ist enthalten in:
Jaydeep verfasst und Jaydeepkumar Patel committed 2022-06-17 00:25:18 -04:00
1 Ursprung 8d464a2e83
Commit 0ad84364e0
1 Datei geändert
+4 -1
+4 -1
Datei anzeigen
@@ -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;
}