diff --git a/projects/hip/tests/src/texture/hipTextureMipmapObj2D.cpp b/projects/hip/tests/src/texture/hipTextureMipmapObj2D.cpp index 6b3f469cb6..719a427f0b 100644 --- a/projects/hip/tests/src/texture/hipTextureMipmapObj2D.cpp +++ b/projects/hip/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) {