From f61dff826a87b41e8133688fa5ce911d95527d38 Mon Sep 17 00:00:00 2001 From: kjayapra-amd Date: Fri, 16 Jul 2021 11:43:53 -0400 Subject: [PATCH] SWDEV-292175 - Use gfx90a guards around image kernel device library call. Change-Id: I29aaac940c75fcab0cddbc263d60c0076ea76068 --- tests/src/texture/hipTextureMipmapObj2D.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/src/texture/hipTextureMipmapObj2D.cpp b/tests/src/texture/hipTextureMipmapObj2D.cpp index 6b3f469cb6..719a427f0b 100644 --- a/tests/src/texture/hipTextureMipmapObj2D.cpp +++ b/tests/src/texture/hipTextureMipmapObj2D.cpp @@ -39,9 +39,11 @@ std::vector mip_vector = {8, 4, 2, 1}; __global__ void tex2DKernel(float* outputData, hipTextureObject_t textureObject, int width, int height, float level) { +#ifndef __gfx90a__ int x = blockIdx.x * blockDim.x + threadIdx.x; int y = blockIdx.y * blockDim.y + threadIdx.y; outputData[y * width + x] = tex2DLod(textureObject, x, y, level); +#endif } bool runMipMapTest(unsigned int width, unsigned int height, unsigned int mipmap_level) {