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:
gecommit door
GitHub
bovenliggende
43ac6b2ef5
commit
ae874b489d
@@ -84,22 +84,15 @@ TEST_CASE("Unit_hipCreateTextureObject_LinearResource") {
|
||||
}
|
||||
|
||||
SECTION("hipResourceTypeLinear and sizeInBytes(0)") {
|
||||
if ((TestContext::get()).isAmd()) {
|
||||
// Populate resource descriptor
|
||||
resDesc.res.linear.devPtr = texBuf;
|
||||
resDesc.res.linear.desc = hipCreateChannelDesc(xsize, 0, 0, 0, hipChannelFormatKindFloat);
|
||||
resDesc.res.linear.sizeInBytes = 0;
|
||||
// Populate resource descriptor
|
||||
resDesc.res.linear.devPtr = texBuf;
|
||||
resDesc.res.linear.desc = hipCreateChannelDesc(xsize, 0, 0, 0, hipChannelFormatKindFloat);
|
||||
resDesc.res.linear.sizeInBytes = 0;
|
||||
|
||||
// Populate texture descriptor
|
||||
texDesc.readMode = hipReadModeElementType;
|
||||
ret = hipCreateTextureObject(&texObj, &resDesc, &texDesc, nullptr);
|
||||
REQUIRE(ret != hipSuccess);
|
||||
} else {
|
||||
// API expected to return failure. Test skipped
|
||||
// on nvidia as api returns success and would lead
|
||||
// to unexpected behavior with app.
|
||||
WARN("Resource type Linear/sizeInBytes(0) skipped on nvidia");
|
||||
}
|
||||
// Populate texture descriptor
|
||||
texDesc.readMode = hipReadModeElementType;
|
||||
HIP_CHECK(hipCreateTextureObject(&texObj, &resDesc, &texDesc, nullptr));
|
||||
HIP_CHECK(hipDestroyTextureObject(texObj));
|
||||
}
|
||||
|
||||
SECTION("hipResourceTypeLinear and sizeInBytes(max(size_t))") {
|
||||
|
||||
Verwijs in nieuw issue
Block a user