commit | 994b8ad38039a9d1c432ef081788a47be90354e7 | [log] [tgz] |
---|---|---|
author | dongseong.hwang <dongseong.hwang@intel.com> | Wed Jun 29 18:34:53 2016 |
committer | Commit bot <commit-bot@chromium.org> | Wed Jun 29 18:36:59 2016 |
tree | 014b37b9e706eb3cda81fb7bd4cbc6505e37aa0e | |
parent | a223560fd493a9f25d23a33bd624328b6eec854a [diff] |
gpu, cmaa: don't blend the leftmost and bottom-most edges. texelFetch() on out of range (i.e. outside of x = [0, width) or y = [0, height)) gives an undefined value. COMBINE_EDGES pass fetches (-1 , _) or (_, -1) texel, which is an undefiend value. So COMBINE_EDGES can mislead the left most edge is dominant edge after comparing the undefined value and the left most pixel. This CL fixes 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 Review-Url: https://codereview.chromium.org/2103893003 Cr-Commit-Position: refs/heads/master@{#402877}