D3D sharable 2D texture: Map Aux GpuVa and set renderCompressed if possible

Change-Id: I508965d07f456af74ecef6e980337f42f5967b43
This commit is contained in:
Dunajski, Bartosz
2018-01-25 15:10:07 +01:00
committed by sys_ocldev
parent 4ad96b75f5
commit 3532c6373f
18 changed files with 220 additions and 64 deletions

View File

@@ -60,6 +60,19 @@ HWTEST_F(WddmTest, doubleCreation) {
delete wddmMock;
}
TEST_F(WddmTest, givenNullPageTableManagerWhenUpdateAuxTableCalledThenReturnFalse) {
auto wddmMock = std::make_unique<WddmMock>();
wddmMock->resetPageTableManager(nullptr);
EXPECT_EQ(nullptr, wddmMock->getPageTableManager());
auto gmm = std::unique_ptr<Gmm>(Gmm::create(nullptr, 1, false));
auto mockGmmRes = reinterpret_cast<MockGmmResourceInfo *>(gmm->gmmResourceInfo.get());
mockGmmRes->setUnifiedAuxTranslationCapable();
EXPECT_FALSE(wddmMock->updateAuxTable(1234u, gmm.get(), true));
}
TEST(WddmTestEnumAdapters, expectTrue) {
ADAPTER_INFO adpaterInfo;
const HardwareInfo hwInfo = *platformDevices[0];