From 821d66bd527bfc2ef9ec374c6dea5171062c1d1e Mon Sep 17 00:00:00 2001 From: Jaydeep Patel Date: Wed, 17 Apr 2024 06:38:46 +0000 Subject: [PATCH] SWDEV-453487 - Check if image is supported for hipModuleGetTexRef. Change-Id: I7eadf6997f8f8363e449c590763e0c20b5b26ff7 --- catch/unit/module/hipModuleGetTexRef.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/catch/unit/module/hipModuleGetTexRef.cc b/catch/unit/module/hipModuleGetTexRef.cc index 1b3c8a50b4..651856bf31 100644 --- a/catch/unit/module/hipModuleGetTexRef.cc +++ b/catch/unit/module/hipModuleGetTexRef.cc @@ -31,12 +31,14 @@ static hipModule_t GetModule() { } TEST_CASE("Unit_hipModuleGetTexRef_Positive_Basic") { + CHECK_IMAGE_SUPPORT hipTexRef tex_ref = nullptr; HIP_CHECK(hipModuleGetTexRef(&tex_ref, GetModule(), "tex")); REQUIRE(tex_ref != nullptr); } TEST_CASE("Unit_hipModuleGetTexRef_Negative_Parameters") { + CHECK_IMAGE_SUPPORT hipModule_t module = GetModule(); hipTexRef tex_ref = nullptr; @@ -54,12 +56,14 @@ TEST_CASE("Unit_hipModuleGetTexRef_Negative_Parameters") { } TEST_CASE("Unit_hipModuleGetTexRef_Negative_Hmod_Is_Nullptr") { + CHECK_IMAGE_SUPPORT hipTexRef tex_ref = nullptr; HIP_CHECK_ERROR(hipModuleGetTexRef(&tex_ref, nullptr, "tex"), hipErrorInvalidResourceHandle); } TEST_CASE("Unit_hipModuleGetTexRef_Negative_Name_Is_Empty_String") { + CHECK_IMAGE_SUPPORT hipModule_t module = GetModule(); hipTexRef tex_ref = nullptr;