From c0a3cb04fec6bf00f32903fdc3e5065feba0be4f Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Thu, 19 Mar 2020 19:17:30 -0400 Subject: [PATCH] Correct typos in texture function declarations Change-Id: I492995e984eda2e8a5e806c5d4c9c78da09ac483 [ROCm/clr commit: dc015d27c17b20711ea00f24c0507e5a397dd8de] --- .../include/hip/hcc_detail/texture_fetch_functions.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/clr/hipamd/include/hip/hcc_detail/texture_fetch_functions.h b/projects/clr/hipamd/include/hip/hcc_detail/texture_fetch_functions.h index 9e8e864520..03c1780030 100644 --- a/projects/clr/hipamd/include/hip/hcc_detail/texture_fetch_functions.h +++ b/projects/clr/hipamd/include/hip/hcc_detail/texture_fetch_functions.h @@ -200,7 +200,7 @@ static __forceinline__ __device__ __hip_tex_ret_t tex1DLod(texture< } template -static __forceinline__ __device__ __hip_tex_ret_t tex2DLod(texture t, float x, float y, float level) +static __forceinline__ __device__ __hip_tex_ret_t tex2DLod(texture t, float x, float y, float level) { TEXTURE_PARAMETERS_INIT; auto tmp = __ockl_image_sample_lod_2D(i, s, float2(x, y).data, level); @@ -240,7 +240,7 @@ static __forceinline__ __device__ __hip_tex_ret_t texCubemapLod(tex } template -static __forceinline__ __device__ __hip_tex_ret_t texCubemapLayered(texture t, float x, float y, float z, int layer) +static __forceinline__ __device__ __hip_tex_ret_t texCubemapLayered(texture t, float x, float y, float z, int layer) { TEXTURE_PARAMETERS_INIT; auto tmp = __ockl_image_sample_CMa(i, s, float4(x, y, z, layer).data); @@ -248,7 +248,7 @@ static __forceinline__ __device__ __hip_tex_ret_t texCubemapLayered } template -static __forceinline__ __device__ __hip_tex_ret_t texCubemapLayeredLod(texture t, float x, float y, float z, int layer, float level) +static __forceinline__ __device__ __hip_tex_ret_t texCubemapLayeredLod(texture t, float x, float y, float z, int layer, float level) { TEXTURE_PARAMETERS_INIT; auto tmp = __ockl_image_sample_lod_CMa(i, s, float4(x, y, z, layer).data, level); @@ -300,7 +300,7 @@ static __forceinline__ __device__ __hip_tex_ret_t tex1DLayeredGrad( } template -static __forceinline__ __device__ __hip_tex_ret_t tex2DLayeredGrad(texture t, float x, float y, int layer, float2 dPdx, float2 dPdy) +static __forceinline__ __device__ __hip_tex_ret_t tex2DLayeredGrad(texture t, float x, float y, int layer, float2 dPdx, float2 dPdy) { TEXTURE_PARAMETERS_INIT; auto tmp = __ockl_image_sample_grad_2Da(i, s, float4(x, y, layer, 0.0f).data, float2(dPdx.x, dPdx.y).data, float2(dPdy.x, dPdy.y).data);