From 6a49171fa5d65cfa7f9bed664e01024d78ae203f Mon Sep 17 00:00:00 2001 From: MachineTom Date: Fri, 24 Oct 2025 16:25:22 -0400 Subject: [PATCH] SWDEV-562431 - Fix Unit_hipBindTexture_Negative failure (#1523) --- projects/hip-tests/catch/unit/texture/hipBindTexture.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/projects/hip-tests/catch/unit/texture/hipBindTexture.cc b/projects/hip-tests/catch/unit/texture/hipBindTexture.cc index 161efd89d1..d73cdfa6b6 100644 --- a/projects/hip-tests/catch/unit/texture/hipBindTexture.cc +++ b/projects/hip-tests/catch/unit/texture/hipBindTexture.cc @@ -135,16 +135,10 @@ TEST_CASE("Unit_hipBindTexture_Negative") { } SECTION("Invalid hipChannelFormatDesc") { - hipChannelFormatDesc invalid_channel_desc; -#if HT_AMD - HIP_CHECK_ERROR(hipBindTexture(&offset, tex_ref, reinterpret_cast(tex_buf), - invalid_channel_desc, N * sizeof(float)), - hipErrorInvalidValue); -#else + hipChannelFormatDesc invalid_channel_desc{-1, -1, -1, -1, hipChannelFormatKindSigned}; HIP_CHECK_ERROR(hipBindTexture(&offset, tex_ref, reinterpret_cast(tex_buf), invalid_channel_desc, N * sizeof(float)), hipErrorInvalidChannelDescriptor); -#endif } if (tex_buf) {