commit | a85e4bf009073c09500e0aff5ca71e4a0bc3c756 | [log] [tgz] |
---|---|---|
author | Greg Daniel <egdaniel@google.com> | Wed Jun 17 16:32:45 2020 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Jun 18 13:52:43 2020 +0000 |
tree | a6c26092d344cfd30fc8ef7592ea831cd6268764 | |
parent | a43d82034180073d377fcf8f1ea88a02f16e380d [diff] |
Fix perspective fragcoord value in d3d. The general issue is that d3d returns a fragcoord with the "w" coord is given as w. But gl, vulkan, and others get a 1/w. So skia assumes a 1/w value here. Thus we must flip for d3d. Change-Id: I4ff9fb363310c1ca52e631246413ab76322def54 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297182 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>