SWDEV-515530 - Re-enable passing tests (#592)

* SWDEV-515530 - Re-enable passing tests

* SWDEV-515530 - Revert back windows config file

* SWDEV-515530 - Fix new line

* SWDEV-515530 - Enable a few more tests

* SWDEV-515530 - Enable passing VMM tests

* SWDEV-515530 - Disable failing tests

* SWDEV-515530 - Fix and enable texture tests

* SWDEV-515530 - Minor fixes

* SWDEV-515530 - Disable one more test

---------

Co-authored-by: Marko Arandjelovic <Marko.Arandjelovic@amd.com>
This commit is contained in:
systems-assistant[bot]
2025-09-02 16:03:07 +02:00
committed by GitHub
parent 43ac6b2ef5
commit ae874b489d
7 changed files with 29 additions and 299 deletions
@@ -130,23 +130,18 @@ TEST_CASE("Unit_hipCreateTextureObject_Pitch2DResource") {
}
SECTION("hipResourceTypePitch2D and height(0)") {
if ((TestContext::get()).isAmd()) {
// Populate resource descriptor
resDesc.res.pitch2D.devPtr = devPtrA;
resDesc.res.pitch2D.height = 0;
resDesc.res.pitch2D.width = SIZE_W;
resDesc.res.pitch2D.pitchInBytes = devPitchA;
resDesc.res.pitch2D.desc = hipCreateChannelDesc<float>();
// Populate resource descriptor
resDesc.res.pitch2D.devPtr = devPtrA;
resDesc.res.pitch2D.height = 0;
resDesc.res.pitch2D.width = SIZE_W;
resDesc.res.pitch2D.pitchInBytes = devPitchA;
resDesc.res.pitch2D.desc = hipCreateChannelDesc<float>();
// Populate texture descriptor
texDesc.readMode = hipReadModeElementType;
// Populate texture descriptor
texDesc.readMode = hipReadModeElementType;
ret = hipCreateTextureObject(&texObj, &resDesc, &texDesc, nullptr);
REQUIRE(ret != hipSuccess);
} else {
// Test expected to return error with height(0).
WARN("Resourcetype Pitch2D/height(0) skipped on nvidia");
}
HIP_CHECK(hipCreateTextureObject(&texObj, &resDesc, &texDesc, nullptr));
HIP_CHECK(hipDestroyTextureObject(texObj));
}
SECTION("hipResourceTypePitch2D and height(0)/devptr(nullptr)") {
@@ -180,24 +175,19 @@ TEST_CASE("Unit_hipCreateTextureObject_Pitch2DResource") {
}
SECTION("hipResourceTypePitch2D and width(0)") {
if ((TestContext::get()).isAmd()) {
// Populate resource descriptor
resDesc.resType = hipResourceTypePitch2D;
resDesc.res.pitch2D.devPtr = devPtrA;
resDesc.res.pitch2D.height = SIZE_H;
resDesc.res.pitch2D.width = 0;
resDesc.res.pitch2D.pitchInBytes = devPitchA;
resDesc.res.pitch2D.desc = hipCreateChannelDesc<float>();
// Populate resource descriptor
resDesc.resType = hipResourceTypePitch2D;
resDesc.res.pitch2D.devPtr = devPtrA;
resDesc.res.pitch2D.height = SIZE_H;
resDesc.res.pitch2D.width = 0;
resDesc.res.pitch2D.pitchInBytes = devPitchA;
resDesc.res.pitch2D.desc = hipCreateChannelDesc<float>();
// Populate texture descriptor
texDesc.readMode = hipReadModeElementType;
// Populate texture descriptor
texDesc.readMode = hipReadModeElementType;
ret = hipCreateTextureObject(&texObj, &resDesc, &texDesc, nullptr);
REQUIRE(ret != hipSuccess);
} else {
// api expected to return failure when width(0) is passed.
WARN("ResourceType Pitch2D/width(0) skipped on nvidia");
}
HIP_CHECK(hipCreateTextureObject(&texObj, &resDesc, &texDesc, nullptr));
HIP_CHECK(hipDestroyTextureObject(texObj));
}
SECTION("hipResourceTypePitch2D and width(0)/devPtr(nullptr)") {