commit | 6da3ecce0e3397264b9412efadef70ede93e8ba8 | [log] [tgz] |
---|---|---|
author | dongseong.hwang <dongseong.hwang@intel.com> | Wed Jun 29 19:12:56 2016 |
committer | Commit bot <commit-bot@chromium.org> | Wed Jun 29 19:15:10 2016 |
tree | e53a3825fa75e9a5c6b77ddd9837e606eba132f9 | |
parent | ef5757cc70ef24902b32906a6b15298878875d9b [diff] |
gpu, cmaa: don't blend the rightmost and topmost edges. texelFetch() on out of range (i.e. outside of x = [0, width) or y = [0, height)) gives an undefined value. DETECT_EDGES2 pass fetches (width, _) or (_, height) texel, which is an undefiend value. So DETECT_EDGES2 can mislead the right most edge is dominant edge after comparing the undefined value and the right most pixel. This CL fixes parts of 3 WebGL conformance tests https://www.khronos.org/registry/webgl/sdk/tests/conformance/rendering/multisample-corruption.html https://www.khronos.org/registry/webgl/sdk/tests/conformance/glsl/bugs/gl-fragcoord-multisampling-bug.html https://www.khronos.org/registry/webgl/sdk/tests/conformance/context/premultiplyalpha-test.html BUG=535198 TEST=Run a WebGL app with Chrome started with "--enable-cmaa-shaders" CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2110543002 Cr-Commit-Position: refs/heads/master@{#402890}