)]}'
{
  "commit": "08419c5581e0523229dca8b415e8db8db6585a17",
  "tree": "b26abc622c9a21489c91e5d1f1b6edfa4efd828b",
  "parents": [
    "408509f6297ac7cbaf8ecaacb3fffdeb100965de"
  ],
  "author": {
    "name": "Jiawei Shao",
    "email": "jiawei.shao@intel.com",
    "time": "Mon Jul 24 02:37:14 2023 +0000"
  },
  "committer": {
    "name": "Dawn LUCI CQ",
    "email": "dawn-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Mon Jul 24 02:37:14 2023 +0000"
  },
  "message": "D3D12: Fix resource placement alignment for textures\n\nThis patch fixes resource placement aligment for textures by always\ntrying to use small placement alignment first so that we can have a\nchance to allocate less memory for small-sized textures. When\nGetResourceAllocationInfo() shows we cannot use small placement\nalignment we can call GetResourceAllocationInfo() again with 0 as\nalignment to get the correct system alignment.\n\nPreviously we always directly use 0 as alignment for resource heap\ntier 2, so we won\u0027t be able to use small placement alignment because\naccording to D3D12 SPEC, if Alignment is set to 0, the runtime will\nalways use 4MB for MSAA textures and 64KB for everything else.\n\nBug: dawn:282\nTest: dawn_end2end_tests\nChange-Id: I425e7454e481d24317eb8a2e760e234c698e575f\nReviewed-on: https://dawn-review.googlesource.com/c/dawn/+/142220\nReviewed-by: Corentin Wallez \u003ccwallez@chromium.org\u003e\nCommit-Queue: Jiawei Shao \u003cjiawei.shao@intel.com\u003e\nKokoro: Kokoro \u003cnoreply+kokoro@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9ea85a80af32a891ae0c8782768618b00bd48254",
      "old_mode": 33188,
      "old_path": "src/dawn/native/d3d12/ResourceAllocatorManagerD3D12.cpp",
      "new_id": "1c66c0b95f75e518e63ed383456c0f3992fe66f2",
      "new_mode": 33188,
      "new_path": "src/dawn/native/d3d12/ResourceAllocatorManagerD3D12.cpp"
    },
    {
      "type": "modify",
      "old_id": "d90eb1dfad9b5e9f1ef0c802086c6a739c266a35",
      "old_mode": 33188,
      "old_path": "src/dawn/tests/white_box/D3D12ResourceHeapTests.cpp",
      "new_id": "37888505e3488c9d2043e43fd632989c1cac0f53",
      "new_mode": 33188,
      "new_path": "src/dawn/tests/white_box/D3D12ResourceHeapTests.cpp"
    }
  ]
}
