SWDEV-562431 - Fix Unit_hipBindTexture_Negative failure (#1523)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user