)]}'
{
  "commit": "024bf32587e5af4c5911778dfe66ec86522d98eb",
  "tree": "21c6f0a11a3478d7a03039e4a4faa3a2a66ca40a",
  "parents": [
    "3b9a1a795f1e46862973f145627ce71fb49a16d2"
  ],
  "author": {
    "name": "Sean Risser",
    "email": "srisser@google.com",
    "time": "Tue May 18 13:58:37 2021 -0400"
  },
  "committer": {
    "name": "swiftshader-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "swiftshader-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Fri May 21 11:43:59 2021 +0000"
  },
  "message": "Make fragDepth clamping conditional\n\nPer the spec:\n\n  If VkPipelineRasterizationStateCreateInfo::depthClampEnable is\n  enabled, before the sample’s zf is compared to za, zf is clamped to\n  [min(n,f),max(n,f)], where n and f are the minDepth and maxDepth depth\n  range values of the viewport used by this fragment, respectively.\n\nSo when we read oDepth back from a shader that sets fragDepth, it should\nonly be clamped when depth clamping is enabled, and it should be clamped\nto the viewport depth clamp values, not [0, 1].\n\nBug: b/184063472\nChange-Id: I92e99b80f3929b8b8030f41f6a3afbfebda4e737\nReviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54408\nReviewed-by: Alexis Hétu \u003csugoi@google.com\u003e\nReviewed-by: Nicolas Capens \u003cnicolascapens@google.com\u003e\nPresubmit-Ready: Alexis Hétu \u003csugoi@google.com\u003e\nCommit-Queue: Sean Risser \u003csrisser@google.com\u003e\nTested-by: Sean Risser \u003csrisser@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "58f6e5a59954fe3f2e9ca61ee2f88e4dd07a0606",
      "old_mode": 33188,
      "old_path": "src/Pipeline/PixelProgram.cpp",
      "new_id": "cf815a49488a5e246eb9e2b75ea232bec5bcd9ba",
      "new_mode": 33188,
      "new_path": "src/Pipeline/PixelProgram.cpp"
    }
  ]
}
