SWDEV-562431 - Fix Unit_hipBindTexture_Negative failure (#1523)

This commit is contained in:
MachineTom
2025-10-24 16:25:22 -04:00
committato da GitHub
parent e9dac39102
commit 6a49171fa5
@@ -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<void*>(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<void*>(tex_buf),
invalid_channel_desc, N * sizeof(float)),
hipErrorInvalidChannelDescriptor);
#endif
}
if (tex_buf) {