From 04e2b6ea7cd95dd751600fe108b3c493da771c93 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Wed, 21 Jun 2023 21:07:28 +0530 Subject: [PATCH] SWDEV-366445 - Add arrayIndex limitation in the API hipGraphicsSubResourceGetMappedArray (#3259) Change-Id: I02445773383076a80ceab90f02cb4ffff227a5dd [ROCm/hip commit: d579c4d3cab15f7beb2943eddb75dba8877c2be3] --- projects/hip/include/hip/hip_runtime_api.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/hip/include/hip/hip_runtime_api.h b/projects/hip/include/hip/hip_runtime_api.h index 33a05e51a4..a1f3822366 100644 --- a/projects/hip/include/hip/hip_runtime_api.h +++ b/projects/hip/include/hip/hip_runtime_api.h @@ -7655,9 +7655,11 @@ hipError_t hipGraphicsMapResources(int count, hipGraphicsResource_t* resources, * @param [in] resource - Mapped resource to access. * @param [in] arrayIndex - Array index for the subresource to access. * @param [in] mipLevel - Mipmap level for the subresource to access. - * + * * @returns #hipSuccess, #hipErrorInvalidValue * + * @note In this API, the value of arrayIndex higher than zero is currently not supported. + * */ hipError_t hipGraphicsSubResourceGetMappedArray(hipArray_t* array, hipGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel); @@ -7667,7 +7669,7 @@ hipError_t hipGraphicsSubResourceGetMappedArray(hipArray_t* array, hipGraphicsRe * @param [out] devPtr - Pointer of device through which graphic resource may be accessed. * @param [out] size - Size of the buffer accessible from devPtr. * @param [in] resource - Mapped resource to access. - * + * * @returns #hipSuccess, #hipErrorInvalidValue * */