Residency 5: Implement and Integrate Residency Management

Adds all D3D12 residency management logic.

Bug: dawn:193
Change-Id: Ibc160289c29cc85817dcfaaef1b92d04599aa802
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/16384
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Brandon Jones <brandon1.jones@intel.com>
This commit is contained in:
Brandon Jones
2020-03-31 15:31:56 +00:00
committed by Commit Bot service account
parent 276b065265
commit 7982cc0527
16 changed files with 403 additions and 23 deletions

View File

@@ -350,4 +350,16 @@ TEST(LinkedList, NodeMoveConstructor) {
EXPECT_EQ(&n3, n2_new.next());
EXPECT_EQ(&n2_new, n3.previous());
EXPECT_EQ(2, n2_new.id());
}
TEST(LinkedList, IsInList) {
LinkedList<Node> list;
Node n(1);
EXPECT_FALSE(n.IsInList());
list.Append(&n);
EXPECT_TRUE(n.IsInList());
n.RemoveFromList();
EXPECT_FALSE(n.IsInList());
}