From 54e592beec58ee6f3af36d42bd1b1538137bbcd9 Mon Sep 17 00:00:00 2001 From: "GunaShekar, Ajay" Date: Fri, 15 Aug 2025 12:35:33 -0700 Subject: [PATCH] SWDEV-541623 - cuda parity hipTexObjectCreate when Array is null (#734) --- hipamd/src/hip_texture.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hipamd/src/hip_texture.cpp b/hipamd/src/hip_texture.cpp index ced82ec938..24a4539a8a 100644 --- a/hipamd/src/hip_texture.cpp +++ b/hipamd/src/hip_texture.cpp @@ -123,7 +123,10 @@ hipError_t ihipCreateTextureObject(hipTextureObject_t* pTexObject, LogInfo("Mipmap not supported on the device"); return hipErrorNotSupported; } - if (pResDesc->res.mipmap.mipmap == nullptr || pTexDesc->normalizedCoords == 0) { + if (pResDesc->res.mipmap.mipmap == nullptr) { + return hipErrorInvalidValue; + } + if (pTexDesc->normalizedCoords == 0) { return hipErrorInvalidChannelDescriptor; } }