From 402fffac2b671a24bfb43e5288ca2913bacdc21f Mon Sep 17 00:00:00 2001 From: Branislav Brzak Date: Fri, 14 Jun 2024 02:37:08 -0700 Subject: [PATCH] SWDEV-465159 - Only compile mipmap tests on Windows Mipmap APIs are not supported on Linux Change-Id: I1aedfbd61c282cc0b93edfab1fab75ef6357a136 [ROCm/hip-tests commit: bcd3665ea937892852de01c66b0ea3363736ed8a] --- .../hip-tests/catch/unit/texture/CMakeLists.txt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/projects/hip-tests/catch/unit/texture/CMakeLists.txt b/projects/hip-tests/catch/unit/texture/CMakeLists.txt index 2c1bcca14d..6c70b1ed93 100644 --- a/projects/hip-tests/catch/unit/texture/CMakeLists.txt +++ b/projects/hip-tests/catch/unit/texture/CMakeLists.txt @@ -44,13 +44,6 @@ set(TEST_SRC hipTextureObj2DCheckSRGBModes.cc hipTexObjectTests.cc hipTextureObjectTests.cc - hipBindTextureToMipmappedArray.cc - hipMallocMipmappedArray.cc - hipFreeMipmappedArray.cc - hipGetMipmappedArrayLevel.cc - hipMipmappedArrayCreate.cc - hipMipmappedArrayDestroy.cc - hipMipmappedArrayGetLevel.cc ) # tests not for gfx90a+ @@ -114,9 +107,17 @@ else() set(TEST_SRC ${TEST_SRC} ${NOT_FOR_gfx90a_AND_ABOVE_TEST}) endif() +# Mipmap APIs are not supported on Linux if(WIN32) set(TEST_SRC ${TEST_SRC} + hipBindTextureToMipmappedArray.cc + hipMallocMipmappedArray.cc + hipFreeMipmappedArray.cc + hipGetMipmappedArrayLevel.cc + hipMipmappedArrayCreate.cc + hipMipmappedArrayDestroy.cc + hipMipmappedArrayGetLevel.cc hipTextureMipmapObj1D.cc hipTextureMipmapObj2D.cc hipTextureMipmapObj3D.cc