SWDEV-562431 - Fix Unit_hipBindTexture_Negative failure (#1523)

Tento commit je obsažen v:
MachineTom
2025-10-24 16:25:22 -04:00
odevzdal GitHub
rodič e9dac39102
revize 6a49171fa5
+1 -7
Zobrazit soubor
@@ -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) {