From 7bc6eda321e92161bda7a56b67e6ea692ec4f69b Mon Sep 17 00:00:00 2001 From: "Sang, Tao" Date: Wed, 23 Apr 2025 11:50:13 -0400 Subject: [PATCH] SWDEV-507388 - Check image support. (#6) Change-Id: Ieda106374eb066cd22ddd1194a9f9b1352c26d16 --- catch/unit/texture/hipTexRefGetFormat.cc | 3 +++ catch/unit/texture/hipTexRefSetFormat.cc | 2 ++ 2 files changed, 5 insertions(+) diff --git a/catch/unit/texture/hipTexRefGetFormat.cc b/catch/unit/texture/hipTexRefGetFormat.cc index bdcbc72848..33480ee8a5 100644 --- a/catch/unit/texture/hipTexRefGetFormat.cc +++ b/catch/unit/texture/hipTexRefGetFormat.cc @@ -24,6 +24,7 @@ THE SOFTWARE. texture tex; TEST_CASE("Unit_hipTexRefGetFormat_Basic") { + CHECK_IMAGE_SUPPORT hipModule_t module = nullptr; hipTexRef tex_ref = nullptr; int num_channels = 0; @@ -44,6 +45,7 @@ TEST_CASE("Unit_hipTexRefGetFormat_Basic") { } TEST_CASE("Unit_hipTexRefGetFormat_Positive") { + CHECK_IMAGE_SUPPORT hipModule_t module = nullptr; hipTexRef tex_ref = nullptr; int num_channels = 1; @@ -74,6 +76,7 @@ TEST_CASE("Unit_hipTexRefGetFormat_Positive") { } TEST_CASE("Unit_hipTexRefGetFormat_Negative") { + CHECK_IMAGE_SUPPORT hipModule_t module = nullptr; hipTexRef tex_ref = nullptr; int num_channels = 1; diff --git a/catch/unit/texture/hipTexRefSetFormat.cc b/catch/unit/texture/hipTexRefSetFormat.cc index a53221d297..0169470a25 100644 --- a/catch/unit/texture/hipTexRefSetFormat.cc +++ b/catch/unit/texture/hipTexRefSetFormat.cc @@ -24,6 +24,7 @@ THE SOFTWARE. texture tex; TEST_CASE("Unit_hipTexRefSetFormat_Positive") { + CHECK_IMAGE_SUPPORT hipModule_t module = nullptr; hipTexRef tex_ref = nullptr; int num_channels = 0; @@ -44,6 +45,7 @@ TEST_CASE("Unit_hipTexRefSetFormat_Positive") { } TEST_CASE("Unit_hipTexRefSetFormat_Negative") { + CHECK_IMAGE_SUPPORT hipModule_t module = nullptr; hipTexRef tex_ref = nullptr; int num_channels = 1;