From d4b6a4086dadf3cfd975b445cf8153ec7d678ff9 Mon Sep 17 00:00:00 2001 From: "Alves, Pedro" Date: Mon, 4 Aug 2025 11:05:03 +0100 Subject: [PATCH] SWDEV-545245 - Fix hipDeviceGetTexture1DLinearMaxWidth declaration (#280) The hipDeviceGetTexture1DLinearMaxWidth declaration is incorrect. It has the wrong arguments. This commit fixes it. [ROCm/hip commit: e74b05a7bd9454b97dc04d7cc4b66d1fe6c534a7] --- projects/hip/include/hip/hip_runtime_api.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/hip/include/hip/hip_runtime_api.h b/projects/hip/include/hip/hip_runtime_api.h index 5d8db05a1d..511fa0d77f 100644 --- a/projects/hip/include/hip/hip_runtime_api.h +++ b/projects/hip/include/hip/hip_runtime_api.h @@ -2245,13 +2245,16 @@ hipError_t hipGetDeviceProperties(hipDeviceProp_t* prop, int deviceId); * limitations of the device. * * @param [out] max_width Maximum width, in elements, of 1D linear textures that the device can support + * @param [in] desc Requested channel format * @param [in] device Device index to query for maximum 1D texture width * * @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidDevice * * @see hipDeviceGetAttribute, hipMalloc, hipTexRefSetAddressMode */ -hipError_t hipDeviceGetTexture1DLinearMaxWidth(hipMemPool_t* mem_pool, int device); +hipError_t hipDeviceGetTexture1DLinearMaxWidth(size_t* max_width, + const hipChannelFormatDesc* desc, + int device); /** * @brief Set L1/Shared cache partition. *