mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
D3D sharable 2D texture: Map Aux GpuVa and set renderCompressed if possible
Change-Id: I508965d07f456af74ecef6e980337f42f5967b43
This commit is contained in:
committed by
sys_ocldev
parent
4ad96b75f5
commit
3532c6373f
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user