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

Issue 2298613010: gpu, cmaa: copy RGBA8 texture via glCopyTexSubImage2D() instead of imageStore(). (Closed)

Created:
4 years, 3 months ago by dshwang
Modified:
4 years, 3 months ago
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu, cmaa: copy RGBA8 texture via glCopyTexSubImage2D() instead of imageStore(). CMAA uses imageStore() to copy RGBA8 to RGBA8 texture. At the moment, we expect the FBO is not updated. However, some drivers (e.g. Intel Mesa) fill random color on the FBO in the case. It causes ugly artifact in the later CMAA phase. This CL copies RGBA8 texture via glCopyTexSubImage2D(), instead of custom shader and glDrawArrays. It fixes the bug as well as speeds up copy. BUG=642290 TEST=chromeos camera app on Samus https://chrome.google.com/webstore/detail/camera/hfhhnacclhffhdffklopdkcgdhifgngh CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/b2d7e66345c253f353d1d3c555964f6e95e26b9c Cr-Commit-Position: refs/heads/master@{#416538}

Patch Set 1 #

Patch Set 2 : remove imageStore() path #

Total comments: 2

Patch Set 3 : fix unnecessary bluring #

Patch Set 4 : use glCopyTexSubImage2D() to copy texture #

Total comments: 1

Patch Set 5 : fix small errata #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -82 lines) Patch
M gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h View 1 2 3 4 3 chunks +1 line, -5 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc View 1 2 3 10 chunks +18 lines, -77 lines 0 comments Download

Messages

Total messages: 37 (29 generated)
dshwang
piman@: Please review changes. It fixs the release blocker issue.
4 years, 3 months ago (2016-09-02 14:30:33 UTC) #5
dshwang
I remove whole imageStore() copy path, because it's not necessary in my opinion. https://codereview.chromium.org/2298613010/diff/40001/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc File ...
4 years, 3 months ago (2016-09-02 15:00:21 UTC) #13
dshwang
use glCopyTexSubImage2D() to copy texture, instead of custom shader and glDrawArrays. It fixes the bug ...
4 years, 3 months ago (2016-09-02 15:38:11 UTC) #20
piman
lgtm
4 years, 3 months ago (2016-09-02 18:12:47 UTC) #27
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/2298613010/100001
4 years, 3 months ago (2016-09-05 11:38:19 UTC) #29
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/2298613010/100001
4 years, 3 months ago (2016-09-05 11:39:29 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 3 months ago (2016-09-05 12:50:57 UTC) #35
commit-bot: I haz the power
4 years, 3 months ago (2016-09-05 12:53:44 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b2d7e66345c253f353d1d3c555964f6e95e26b9c
Cr-Commit-Position: refs/heads/master@{#416538}

Powered by Google App Engine
This is Rietveld 408576698