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

Issue 2409523002: [Command buffer] Fix the bug when blitting pixels outside read framebuffer (Closed)

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

Description

[Command buffer] Fix the bug when blitting pixels outside read framebuffer. All related failures in deqp/ and conformance2/ can be fixed by this change. BUG=644740 TEST=deqp/functional/gles3/framebufferblit/default_framebuffer_*.html, conformance2/rendering/blitframebuffer_filter_outofbounds.html, deqp/functional/gels3/framebufferblit/rect_02.html 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/b6c1222980a7ed3761601d4a5455fa366eb134f6 Cr-Commit-Position: refs/heads/master@{#426155}

Patch Set 1 #

Patch Set 2 : update webgl2 expectation #

Patch Set 3 : Fix bots failure #

Patch Set 4 : Fix the error when coordinates are reversed #

Patch Set 5 : code rebase #

Patch Set 6 : code rebase again #

Patch Set 7 : Code refactoring #

Total comments: 18

Patch Set 8 : make the fix under workarounds #

Patch Set 9 : Addressed feedbacks from Zhenyao and Corentin #

Patch Set 10 : code rebase #

Total comments: 14

Patch Set 11 : Addressed feedbacks from Corentin and Zhenyao #

Total comments: 6

Patch Set 12 : code rebase, and addressed one more feedback from Corentin #

Patch Set 13 : Addressed zmo@'s feedback #

Patch Set 14 : code rebase again #

Total comments: 2

Patch Set 15 : Addressed Corentin's feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -21 lines) Patch
M content/test/gpu/gpu_tests/webgl2_conformance_expectations.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +2 lines, -19 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +90 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gpu/config/gpu_driver_bug_list_json.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +36 lines, -1 line 0 comments Download
M gpu/config/gpu_driver_bug_workaround_type.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 99 (72 generated)
yunchao
Handle the situation when blitting out-of-bounds. PTAL. Thanks a lot. Maybe the code should be ...
4 years, 2 months ago (2016-10-12 14:58:18 UTC) #24
yunchao
One more comment for the pixels lying on the border. https://codereview.chromium.org/2409523002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2409523002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8032 ...
4 years, 2 months ago (2016-10-12 15:26:14 UTC) #25
Zhenyao Mo
https://codereview.chromium.org/2409523002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2409523002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7995 gpu/command_buffer/service/gles2_cmd_decoder.cc:7995: GLuint src_x = srcX1 > srcX0 ? srcX0 : ...
4 years, 2 months ago (2016-10-13 00:35:56 UTC) #26
yunchao
Thanks for your review, Zhenyao. Some feedbacks from me about the unclear part of this ...
4 years, 2 months ago (2016-10-13 01:50:47 UTC) #27
yunchao
On 2016/10/13 01:50:47, yunchao wrote: > Thanks for your review, Zhenyao. Some feedbacks from me ...
4 years, 2 months ago (2016-10-13 02:00:40 UTC) #28
Corentin Wallez
On 2016/10/13 at 02:00:40, yunchao.he wrote: > On 2016/10/13 01:50:47, yunchao wrote: > > Thanks ...
4 years, 2 months ago (2016-10-13 14:35:26 UTC) #29
Corentin Wallez
https://codereview.chromium.org/2409523002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2409523002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8032 gpu/command_buffer/service/gles2_cmd_decoder.cc:8032: GLuint dst_mapping_x0 = (filter == GL_LINEAR) ? On 2016/10/13 ...
4 years, 2 months ago (2016-10-13 14:35:53 UTC) #31
Zhenyao Mo
https://codereview.chromium.org/2409523002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2409523002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7995 gpu/command_buffer/service/gles2_cmd_decoder.cc:7995: GLuint src_x = srcX1 > srcX0 ? srcX0 : ...
4 years, 2 months ago (2016-10-13 22:51:23 UTC) #32
Corentin Wallez
On 2016/10/13 at 22:51:23, zmo wrote: > https://codereview.chromium.org/2409523002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > > https://codereview.chromium.org/2409523002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7995 ...
4 years, 2 months ago (2016-10-13 23:05:25 UTC) #33
Zhenyao Mo
https://codereview.chromium.org/2409523002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2409523002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8032 gpu/command_buffer/service/gles2_cmd_decoder.cc:8032: GLuint dst_mapping_x0 = (filter == GL_LINEAR) ? On 2016/10/13 ...
4 years, 2 months ago (2016-10-13 23:16:16 UTC) #34
yunchao
Zhenyao and Corentein, thanks for your feedbacks. Below are some comments inline. https://codereview.chromium.org/2409523002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc ...
4 years, 2 months ago (2016-10-14 02:52:50 UTC) #35
yunchao
Addressed feedbacks from Zhenyao and Corentin. https://codereview.chromium.org/2409523002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2409523002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7997 gpu/command_buffer/service/gles2_cmd_decoder.cc:7997: GLuint src_width = ...
4 years, 2 months ago (2016-10-14 13:49:06 UTC) #37
Corentin Wallez
https://codereview.chromium.org/2409523002/diff/200001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2409523002/diff/200001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7995 gpu/command_buffer/service/gles2_cmd_decoder.cc:7995: gfx::Rect rect(0, 0, read_size.width(), read_size.height()); rect isn't a very ...
4 years, 2 months ago (2016-10-14 14:42:42 UTC) #41
Zhenyao Mo
https://codereview.chromium.org/2409523002/diff/200001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2409523002/diff/200001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7999 gpu/command_buffer/service/gles2_cmd_decoder.cc:7999: srcX1 > srcX0 ? srcX1 - srcX0 : srcX0 ...
4 years, 2 months ago (2016-10-14 17:54:15 UTC) #42
Zhenyao Mo
https://codereview.chromium.org/2409523002/diff/200001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2409523002/diff/200001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8002 gpu/command_buffer/service/gles2_cmd_decoder.cc:8002: GLuint src_width = src_width_temp.ValueOrDie(); On 2016/10/14 17:54:15, Zhenyao Mo ...
4 years, 2 months ago (2016-10-14 21:10:32 UTC) #43
yunchao
Thanks for your review, Corentin and Zhenyao. I have updated the code according to your ...
4 years, 2 months ago (2016-10-15 14:34:58 UTC) #53
Zhenyao Mo
Sorry another tiny bug I didn't catch in previous review https://codereview.chromium.org/2409523002/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2409523002/diff/240001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode7997 ...
4 years, 2 months ago (2016-10-17 20:16:21 UTC) #58
yunchao
Thanks for your careful review, Zhenyao. Code has been updated accordingly. Please take another look. ...
4 years, 2 months ago (2016-10-17 23:51:29 UTC) #59
Zhenyao Mo
On 2016/10/17 23:51:29, yunchao wrote: > Thanks for your careful review, Zhenyao. Code has been ...
4 years, 2 months ago (2016-10-17 23:56:07 UTC) #60
yunchao
Corentin, could you also take another look? Thanks a lot! @cwallez.
4 years, 2 months ago (2016-10-18 00:26:56 UTC) #61
Corentin Wallez
On 2016/10/18 at 00:26:56, yunchao.he wrote: > Corentin, could you also take another look? Thanks ...
4 years, 2 months ago (2016-10-18 19:29:29 UTC) #74
Corentin Wallez
https://codereview.chromium.org/2409523002/diff/300001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2409523002/diff/300001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8009 gpu/command_buffer/service/gles2_cmd_decoder.cc:8009: } else { nit: no need for an else ...
4 years, 2 months ago (2016-10-18 20:13:19 UTC) #75
yunchao
On 2016/10/18 20:13:19, Corentin Wallez wrote: > https://codereview.chromium.org/2409523002/diff/300001/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > > https://codereview.chromium.org/2409523002/diff/300001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8009 ...
4 years, 2 months ago (2016-10-19 07:56:41 UTC) #91
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/2409523002/340001
4 years, 2 months ago (2016-10-19 09:30:40 UTC) #94
commit-bot: I haz the power
Committed patchset #15 (id:340001)
4 years, 2 months ago (2016-10-19 12:07:26 UTC) #96
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/b6c1222980a7ed3761601d4a5455fa366eb134f6 Cr-Commit-Position: refs/heads/master@{#426155}
4 years, 1 month ago (2016-10-21 13:07:16 UTC) #98
Yang Gu
4 years, 1 month ago (2016-10-21 13:07:36 UTC) #99
Message was sent while issue was closed.
Yang is OOO from Oct 21 to 30, please expect slow response.

Powered by Google App Engine
This is Rietveld 408576698