Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Issue 2103893003: gpu, cmaa: don't blend the leftmost and bottom-most edges. (Closed)

Created:
4 years, 5 months ago by dshwang
Modified:
4 years, 5 months ago
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/994b8ad38039a9d1c432ef081788a47be90354e7 Cr-Commit-Position: refs/heads/master@{#402877}

Patch Set 1 #

Total comments: 3

Patch Set 2 : use notEqual for component wise comparison #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
dshwang
piman@ could you review? It's the 3rd CL of https://bugs.chromium.org/p/chromium/issues/detail?id=535198#c16
4 years, 5 months ago (2016-06-28 18:16:26 UTC) #3
piman
https://codereview.chromium.org/2103893003/diff/1/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc File gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc (right): https://codereview.chromium.org/2103893003/diff/1/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc#newcode1373 gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc:1373: uvec2 notBottomLeft = uvec2(screenPosIBase.xy != ivec2(0, 0)); "screenPosIBase.xy != ...
4 years, 5 months ago (2016-06-28 21:08:10 UTC) #4
dshwang
Thank you for reviewing. I explained the intention below. https://codereview.chromium.org/2103893003/diff/1/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc File gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc (right): https://codereview.chromium.org/2103893003/diff/1/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc#newcode1373 gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc:1373: ...
4 years, 5 months ago (2016-06-29 10:35:57 UTC) #5
dshwang
https://codereview.chromium.org/2103893003/diff/1/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc File gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc (right): https://codereview.chromium.org/2103893003/diff/1/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc#newcode1373 gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc:1373: uvec2 notBottomLeft = uvec2(screenPosIBase.xy != ivec2(0, 0)); On 2016/06/28 ...
4 years, 5 months ago (2016-06-29 13:54:36 UTC) #6
adrian.belgun
lgtm
4 years, 5 months ago (2016-06-29 14:59:25 UTC) #7
jon.kennedy
lgtm
4 years, 5 months ago (2016-06-29 15:57:34 UTC) #8
piman
lgtm
4 years, 5 months ago (2016-06-29 17:19:43 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2103893003/20001
4 years, 5 months ago (2016-06-29 17:41:33 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2103893003/20001
4 years, 5 months ago (2016-06-29 18:24:27 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-06-29 18:35:09 UTC) #18
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-29 18:35:34 UTC) #19
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 18:37:15 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/994b8ad38039a9d1c432ef081788a47be90354e7
Cr-Commit-Position: refs/heads/master@{#402877}

Powered by Google App Engine
This is Rietveld 408576698