)]}'
{
  "commit": "7d3a30e786c1c9bd61d24b21d7fdec5218ab280c",
  "tree": "78426ec1aa82782ef8542af78643f86e4b01460c",
  "parents": [
    "40cf7fd7bc06f871fc5e482338dffa3a8ba3acfb"
  ],
  "author": {
    "name": "Yuly Novikov",
    "email": "ynovikov@chromium.org",
    "time": "Mon Sep 09 08:43:10 2024 +0000"
  },
  "committer": {
    "name": "Dawn LUCI CQ",
    "email": "dawn-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Mon Sep 09 08:43:10 2024 +0000"
  },
  "message": "Revert \"Support validating buffer usage with usage validation mode\"\n\nThis reverts commit 1f3f5df6810adfd8c37ce25fb3c22c92a4e9bf02.\n\nReason for revert: blocks rolling into Chromium\nhttps://chromium-review.googlesource.com/c/chromium/src/+/5841338\nhttps://ci.chromium.org/ui/p/chromium/builders/try/dawn-mac-arm64-deps-rel/8457/overview\n[ RUN      ] InternalStorageBufferBindingTests.QueryResolveBufferBoundAsInternalStorageBuffer/Metal_Apple_M2\nError: Assertion failure at ../../third_party/dawn/src/dawn/native/CommandEncoder.cpp:1128 (BeginComputePass): device-\u003eIsLockedByCurrentThreadIfNeeded()\n\nOriginal change\u0027s description:\n\u003e Support validating buffer usage with usage validation mode\n\u003e\n\u003e This patch adds `UsageValidationMode` as the third parameter of\n\u003e `ValidateCanUseAs` with a buffer as input to align with the\n\u003e format of the function `ValidateCanUseAs` with a texture as input.\n\u003e\n\u003e This patch also updates the test `InternalStorageBufferBindingTests`\n\u003e by using classes in `native::` instead of the `wgpu::` to better\n\u003e test the `internal usage` of the buffers.\n\u003e\n\u003e Bug: chromium:42240463\n\u003e Test: dawn_unittests\n\u003e Change-Id: I2db2c922555ded050949da20828be17c95499152\n\u003e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/204914\n\u003e Commit-Queue: Jiawei Shao \u003cjiawei.shao@intel.com\u003e\n\u003e Reviewed-by: Corentin Wallez \u003ccwallez@chromium.org\u003e\n\n# Not skipping CQ checks because original CL landed \u003e 1 day ago.\n\nBug: chromium:42240463\nChange-Id: I87fd848faba5d6515edaba32c25b7537e2ef81f0\nReviewed-on: https://dawn-review.googlesource.com/c/dawn/+/205994\nAuto-Submit: Yuly Novikov \u003cynovikov@chromium.org\u003e\nReviewed-by: Jiawei Shao \u003cjiawei.shao@intel.com\u003e\nCommit-Queue: Jiawei Shao \u003cjiawei.shao@intel.com\u003e\nBot-Commit: rubber-stamper@appspot.gserviceaccount.com \u003crubber-stamper@appspot.gserviceaccount.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2f31c8b1615d406b7f585372bb9451a3969d8cc0",
      "old_mode": 33188,
      "old_path": "src/dawn/native/BindGroup.cpp",
      "new_id": "b397bf454e0f5443dcc104d282f31dca2c77ef50",
      "new_mode": 33188,
      "new_path": "src/dawn/native/BindGroup.cpp"
    },
    {
      "type": "modify",
      "old_id": "468268b3565cf213881e6bca952e68abff547036",
      "old_mode": 33188,
      "old_path": "src/dawn/native/CommandEncoder.cpp",
      "new_id": "3ded74ad7563613a5b495ad3ce69354247d80469",
      "new_mode": 33188,
      "new_path": "src/dawn/native/CommandEncoder.cpp"
    },
    {
      "type": "modify",
      "old_id": "d9c6f995acef72a4c5ac0a06bc8e0ba91e0194c3",
      "old_mode": 33188,
      "old_path": "src/dawn/native/CommandValidation.cpp",
      "new_id": "7bd537ad1b1236a1201266acd76f2e9f1a106cc4",
      "new_mode": 33188,
      "new_path": "src/dawn/native/CommandValidation.cpp"
    },
    {
      "type": "modify",
      "old_id": "3afd684d9398735ca42c2b24bcb7a3bdf75f1533",
      "old_mode": 33188,
      "old_path": "src/dawn/native/CommandValidation.h",
      "new_id": "36e737ff24eabeeb59e8f5e799489e0f3cf3dbbf",
      "new_mode": 33188,
      "new_path": "src/dawn/native/CommandValidation.h"
    },
    {
      "type": "modify",
      "old_id": "f25767bd7ba2b51d14c3ba9b4578939155ebfd4e",
      "old_mode": 33188,
      "old_path": "src/dawn/native/ComputePassEncoder.cpp",
      "new_id": "fb76d7f835b9bcbe4d8a74c074792d27967bda4f",
      "new_mode": 33188,
      "new_path": "src/dawn/native/ComputePassEncoder.cpp"
    },
    {
      "type": "modify",
      "old_id": "b9c4c5f53ea497164967ef66e83f42c05f4ab3d1",
      "old_mode": 33188,
      "old_path": "src/dawn/native/IndirectDrawValidationEncoder.cpp",
      "new_id": "e373d9c3dd6ccd219fc9fe2d5c32652c2eaa5196",
      "new_mode": 33188,
      "new_path": "src/dawn/native/IndirectDrawValidationEncoder.cpp"
    },
    {
      "type": "modify",
      "old_id": "d87847eaf1d6c42237950f9d42123e57f12695fd",
      "old_mode": 33188,
      "old_path": "src/dawn/native/Queue.cpp",
      "new_id": "a8197d24eeb5156805f185ad9cf32b464cc03eef",
      "new_mode": 33188,
      "new_path": "src/dawn/native/Queue.cpp"
    },
    {
      "type": "modify",
      "old_id": "6cafa624fd5a57714ec10aa2fd3f710d0b1214c4",
      "old_mode": 33188,
      "old_path": "src/dawn/native/RenderEncoderBase.cpp",
      "new_id": "67af801fd1ed5cf8efae25e75079f89509ba440c",
      "new_mode": 33188,
      "new_path": "src/dawn/native/RenderEncoderBase.cpp"
    },
    {
      "type": "modify",
      "old_id": "373aa322819ac160656815bb69af3c0780b80fbf",
      "old_mode": 33188,
      "old_path": "src/dawn/tests/white_box/InternalStorageBufferBindingTests.cpp",
      "new_id": "4060a58476db96fd373f2076145f457360592f12",
      "new_mode": 33188,
      "new_path": "src/dawn/tests/white_box/InternalStorageBufferBindingTests.cpp"
    }
  ]
}
