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

Issue 2405893002: gpu, cmaa: reduce one-copy (Closed)

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

Description

gpu, cmaa: reduce one-copy Merge copy into the detect edges pass 0. As the pass reads all texel of source texture, it can copy source texture to RGBA8 by itself. So it removes one glCopyTexSubImage2D call, which means one read memory bandwidth is saved. In addition, it cleans up inconsistent image texture variable names. 'float4' doesn't mean anything. Change float4 to rgba. * edges1_shader_result_texture_float4_slot1_ -> edges0_shader_result_rgba_texture_slot1_ * edges1_shader_result_texture_ -> edges1_shader_result_edge_texture_ * remove edges_combine_shader_result_texture_float4_slot1_ * process_and_apply_shader_result_texture_float4_slot1_ -> process_and_apply_shader_result_rgba_texture_slot1_ * edges_combine_shader_result_texture_slot2_ -> edges_combine_shader_result_edge_texture_ * introduce edges0_shader_target_texture_slot2_ BUG=535198 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/2058173d586111ff8b4d19ddf5cb53fc6a3233ca Cr-Commit-Position: refs/heads/master@{#425668}

Patch Set 1 #

Patch Set 2 : gpu, cmaa: reduce one-copy #

Total comments: 2

Patch Set 3 : add helper comment #

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

Messages

Total messages: 32 (22 generated)
dshwang
zmo@, could you review this optimization?
4 years, 2 months ago (2016-10-10 17:20:08 UTC) #9
adrian.belgun
lgtm with nits. https://codereview.chromium.org/2405893002/diff/20001/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/2405893002/diff/20001/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc#newcode252 gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc:252: if (do_copy) { Nit: Add comment ...
4 years, 2 months ago (2016-10-11 13:47:24 UTC) #12
dshwang
zmo@, could you review this optimization? https://codereview.chromium.org/2405893002/diff/20001/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/2405893002/diff/20001/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc#newcode252 gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc:252: if (do_copy) { ...
4 years, 2 months ago (2016-10-13 12:35:37 UTC) #17
dshwang
piman@, could you review this optimization?
4 years, 2 months ago (2016-10-14 12:04:40 UTC) #20
piman
lgtm
4 years, 2 months ago (2016-10-14 17:53:12 UTC) #21
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/2405893002/40001
4 years, 2 months ago (2016-10-14 18:06:47 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_optional_gpu_tests_rel on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_optional_gpu_tests_rel/builds/4488)
4 years, 2 months ago (2016-10-14 19:14:11 UTC) #26
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/2405893002/40001
4 years, 2 months ago (2016-10-17 12:19:31 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-17 13:08:42 UTC) #30
commit-bot: I haz the power
4 years, 2 months ago (2016-10-17 13:10:40 UTC) #32
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2058173d586111ff8b4d19ddf5cb53fc6a3233ca
Cr-Commit-Position: refs/heads/master@{#425668}

Powered by Google App Engine
This is Rietveld 408576698