From 4185c568daab2e8b693911b925cdc32f66774325 Mon Sep 17 00:00:00 2001 From: Jaydeep Date: Wed, 15 Jun 2022 11:20:04 +0000 Subject: [PATCH] SWDEV-336542 - Return InvalidValue error for hipArrayCubemap flag. Change-Id: I4ca996d7643158d5ccf8cb48ceaead3ceaf9aedf [ROCm/clr commit: 0ad84364e0c693525186befa1f38e1e61d70da66] --- projects/clr/hipamd/src/hip_memory.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }