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. *