EXSWHTEC-359 - Implement tests for 3D mipmapped texture device functions #433

Change-Id: I1933d498f518b352b91b1c37b24c62d0cac309eb


[ROCm/hip-tests commit: 2691895821]
This commit is contained in:
Mirza Halilčević
2023-12-28 14:19:14 +01:00
committed by Rakesh Roy
parent 37195d94b3
commit f2464a3645
5 changed files with 17 additions and 19 deletions
@@ -128,19 +128,8 @@
"Unit_hipEventIpc",
"=== SWDEV-427101:Below test fails randomly in PSDB ===",
"Unit_deviceAllocation_InOneThread_AccessInAllThreads",
<<<<<<< HEAD
"=== Below test is disabled due to defect EXSWHTEC-347 ===",
"Unit_hipPointerSetAttribute_Positive_SyncMemops",
=======
"Unit_tex2DLod_Positive_ReadModeElementType",
"Unit_tex2DLod_Positive_ReadModeNormalizedFloat",
"Unit_tex2DLayeredLod_Positive_ReadModeElementType",
"Unit_tex2DLayeredLod_Positive_ReadModeNormalizedFloat",
"Unit_tex2DGrad_Positive_ReadModeElementType",
"Unit_tex2DGrad_Positive_ReadModeNormalizedFloat",
"Unit_tex2DLayeredGrad_Positive_ReadModeElementType",
"Unit_tex2DLayeredGrad_Positive_ReadModeNormalizedFloat",
>>>>>>> ab1704d9 (Merge branch 'develop' into tex2D_mipmap_tests)
"=== Patch which removes the typetraits implementation from std namespace in hiprtc is reverted ===",
"Unit_hiprtc_stdheaders",
"Unit_hipGraphAddMemcpyNode_Negative_Parameters",
@@ -76,6 +76,9 @@ set(TEST_SRC
tex2DLayeredGrad.cc
tex2DLod.cc
tex2DLayeredLod.cc
tex3D.cc
tex3DLod.cc
tex3DGrad.cc
)
if(WIN32)
@@ -94,6 +94,7 @@ TEMPLATE_TEST_CASE("Unit_tex3D_Positive_ReadModeElementType", "", char, unsigned
z = GetCoordinate(z, params.NumItersZ(), params.Depth(), params.num_subdivisions,
params.tex_desc.normalizedCoords);
INFO("Filtering mode: " << FilteringModeToString(params.tex_desc.filterMode));
INFO("Normalized coordinates: " << std::boolalpha << params.tex_desc.normalizedCoords);
INFO("Address mode X: " << AddressModeToString(params.tex_desc.addressMode[0]));
INFO("Address mode Y: " << AddressModeToString(params.tex_desc.addressMode[1]));
@@ -173,6 +174,7 @@ TEMPLATE_TEST_CASE("Unit_tex3D_Positive_ReadModeNormalizedFloat", "", char, unsi
z = GetCoordinate(z, params.NumItersZ(), params.Depth(), params.num_subdivisions,
params.tex_desc.normalizedCoords);
INFO("Filtering mode: " << FilteringModeToString(params.tex_desc.filterMode));
INFO("Normalized coordinates: " << std::boolalpha << params.tex_desc.normalizedCoords);
INFO("Address mode X: " << AddressModeToString(params.tex_desc.addressMode[0]));
INFO("Address mode Y: " << AddressModeToString(params.tex_desc.addressMode[1]));
@@ -46,7 +46,7 @@ THE SOFTWARE.
* - unit/texture/tex3DGrad.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
* - HIP_VERSION >= 5.7
*/
TEMPLATE_TEST_CASE("Unit_tex3DGrad_Positive_ReadModeElementType", "", char, unsigned char, short,
unsigned short, int, unsigned int, float) {
@@ -57,7 +57,7 @@ TEMPLATE_TEST_CASE("Unit_tex3DGrad_Positive_ReadModeElementType", "", char, unsi
params.num_subdivisions = 2;
params.GenerateTextureDesc();
TextureTestFixture<TestType> fixture{params};
TextureTestFixture<TestType, false, true> fixture{params};
const auto [num_threads_x, num_blocks_x] = GetLaunchConfig(10, params.NumItersX());
const auto [num_threads_y, num_blocks_y] = GetLaunchConfig(10, params.NumItersY());
@@ -94,6 +94,7 @@ TEMPLATE_TEST_CASE("Unit_tex3DGrad_Positive_ReadModeElementType", "", char, unsi
z = GetCoordinate(z, params.NumItersZ(), params.Depth(), params.num_subdivisions,
params.tex_desc.normalizedCoords);
INFO("Filtering mode: " << FilteringModeToString(params.tex_desc.filterMode));
INFO("Normalized coordinates: " << std::boolalpha << params.tex_desc.normalizedCoords);
INFO("Address mode X: " << AddressModeToString(params.tex_desc.addressMode[0]));
INFO("Address mode Y: " << AddressModeToString(params.tex_desc.addressMode[1]));
@@ -125,7 +126,7 @@ TEMPLATE_TEST_CASE("Unit_tex3DGrad_Positive_ReadModeElementType", "", char, unsi
* - unit/texture/tex3DGrad.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
* - HIP_VERSION >= 5.7
*/
TEMPLATE_TEST_CASE("Unit_tex3DGrad_Positive_ReadModeNormalizedFloat", "", char, unsigned char,
short, unsigned short) {
@@ -136,7 +137,7 @@ TEMPLATE_TEST_CASE("Unit_tex3DGrad_Positive_ReadModeNormalizedFloat", "", char,
params.num_subdivisions = 2;
params.GenerateTextureDesc(hipReadModeNormalizedFloat);
TextureTestFixture<TestType, true> fixture{params};
TextureTestFixture<TestType, true, true> fixture{params};
const auto [num_threads_x, num_blocks_x] = GetLaunchConfig(10, params.NumItersX());
const auto [num_threads_y, num_blocks_y] = GetLaunchConfig(10, params.NumItersY());
@@ -173,6 +174,7 @@ TEMPLATE_TEST_CASE("Unit_tex3DGrad_Positive_ReadModeNormalizedFloat", "", char,
z = GetCoordinate(z, params.NumItersZ(), params.Depth(), params.num_subdivisions,
params.tex_desc.normalizedCoords);
INFO("Filtering mode: " << FilteringModeToString(params.tex_desc.filterMode));
INFO("Normalized coordinates: " << std::boolalpha << params.tex_desc.normalizedCoords);
INFO("Address mode X: " << AddressModeToString(params.tex_desc.addressMode[0]));
INFO("Address mode Y: " << AddressModeToString(params.tex_desc.addressMode[1]));
@@ -46,7 +46,7 @@ THE SOFTWARE.
* - unit/texture/tex3DLod.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
* - HIP_VERSION >= 5.7
*/
TEMPLATE_TEST_CASE("Unit_tex3DLod_Positive_ReadModeElementType", "", char, unsigned char, short,
unsigned short, int, unsigned int, float) {
@@ -57,7 +57,7 @@ TEMPLATE_TEST_CASE("Unit_tex3DLod_Positive_ReadModeElementType", "", char, unsig
params.num_subdivisions = 2;
params.GenerateTextureDesc();
TextureTestFixture<TestType> fixture{params};
TextureTestFixture<TestType, false, true> fixture{params};
const auto [num_threads_x, num_blocks_x] = GetLaunchConfig(10, params.NumItersX());
const auto [num_threads_y, num_blocks_y] = GetLaunchConfig(10, params.NumItersY());
@@ -94,6 +94,7 @@ TEMPLATE_TEST_CASE("Unit_tex3DLod_Positive_ReadModeElementType", "", char, unsig
z = GetCoordinate(z, params.NumItersZ(), params.Depth(), params.num_subdivisions,
params.tex_desc.normalizedCoords);
INFO("Filtering mode: " << FilteringModeToString(params.tex_desc.filterMode));
INFO("Normalized coordinates: " << std::boolalpha << params.tex_desc.normalizedCoords);
INFO("Address mode X: " << AddressModeToString(params.tex_desc.addressMode[0]));
INFO("Address mode Y: " << AddressModeToString(params.tex_desc.addressMode[1]));
@@ -125,7 +126,7 @@ TEMPLATE_TEST_CASE("Unit_tex3DLod_Positive_ReadModeElementType", "", char, unsig
* - unit/texture/tex3DLod.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
* - HIP_VERSION >= 5.7
*/
TEMPLATE_TEST_CASE("Unit_tex3DLod_Positive_ReadModeNormalizedFloat", "", char, unsigned char, short,
unsigned short) {
@@ -136,7 +137,7 @@ TEMPLATE_TEST_CASE("Unit_tex3DLod_Positive_ReadModeNormalizedFloat", "", char, u
params.num_subdivisions = 2;
params.GenerateTextureDesc(hipReadModeNormalizedFloat);
TextureTestFixture<TestType, true> fixture{params};
TextureTestFixture<TestType, true, true> fixture{params};
const auto [num_threads_x, num_blocks_x] = GetLaunchConfig(10, params.NumItersX());
const auto [num_threads_y, num_blocks_y] = GetLaunchConfig(10, params.NumItersY());
@@ -173,6 +174,7 @@ TEMPLATE_TEST_CASE("Unit_tex3DLod_Positive_ReadModeNormalizedFloat", "", char, u
z = GetCoordinate(z, params.NumItersZ(), params.Depth(), params.num_subdivisions,
params.tex_desc.normalizedCoords);
INFO("Filtering mode: " << FilteringModeToString(params.tex_desc.filterMode));
INFO("Normalized coordinates: " << std::boolalpha << params.tex_desc.normalizedCoords);
INFO("Address mode X: " << AddressModeToString(params.tex_desc.addressMode[0]));
INFO("Address mode Y: " << AddressModeToString(params.tex_desc.addressMode[1]));