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

Issue 2764833003: Make gl_clear_broken workaround support core profile and use it under AMD Linux Catalyst driver (Closed)

Created:
3 years, 9 months ago by xiangze.zhang
Modified:
3 years, 8 months ago
CC:
chromium-reviews, piman+watch_chromium.org, bsalomon_chromium, vmiura, Corentin Wallez
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make gl_clear_broken workaround support core profile and use it under AMD Linux Catalyst driver Make ClearFrameBuffer use a VAO and add version to shaders in core profile. Use gl_clear_broken workaround under Linux AMD Catalyst driver because it ignores clear if it's the only thing rendered to the target before the target is read. BUG=690122 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;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 Review-Url: https://codereview.chromium.org/2764833003 Cr-Commit-Position: refs/heads/master@{#460282} Committed: https://chromium.googlesource.com/chromium/src/+/6ca5d0d3ad671604d9a028e71402e9e5ee25f110

Patch Set 1 #

Patch Set 2 : update driver bug version #

Patch Set 3 : rebase #

Total comments: 1

Patch Set 4 : Use ShaderTranslator #

Patch Set 5 : fix compile error #

Total comments: 2

Patch Set 6 : fix nits #

Patch Set 7 : uniform location should be GLint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -48 lines) Patch
M gpu/command_buffer/service/gles2_cmd_clear_framebuffer.h View 1 2 3 4 5 6 3 chunks +13 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc View 1 2 3 4 5 8 chunks +73 lines, -12 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 3 chunks +5 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/tests/gl_clear_framebuffer_unittest.cc View 5 chunks +0 lines, -24 lines 0 comments Download
M gpu/config/gpu_driver_bug_list_json.cc View 1 2 2 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 64 (43 generated)
xiangze.zhang
PTAL. This patch is based on https://codereview.chromium.org/2080943002 and tries to avoid the failures.
3 years, 9 months ago (2017-03-21 12:00:33 UTC) #3
Ken Russell (switch to Gerrit)
Thank you Xiangze for fixing this. The change looks good to me overall. Probably something ...
3 years, 9 months ago (2017-03-23 04:51:04 UTC) #4
Ken Russell (switch to Gerrit)
On 2017/03/23 04:51:04, Ken Russell wrote: > Thank you Xiangze for fixing this. The change ...
3 years, 9 months ago (2017-03-23 05:07:43 UTC) #9
xiangze.zhang
On 2017/03/23 05:07:43, Ken Russell wrote: > On 2017/03/23 04:51:04, Ken Russell wrote: > > ...
3 years, 9 months ago (2017-03-23 05:30:13 UTC) #10
Zhenyao Mo
Great work. LGTM https://codereview.chromium.org/2764833003/diff/40001/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc File gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc (right): https://codereview.chromium.org/2764833003/diff/40001/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc#newcode74 gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc:74: vao_(0), nit: 0u to be consistent ...
3 years, 9 months ago (2017-03-23 17:11:40 UTC) #11
xiangze.zhang
Changed the code to use ShaderTranslator instead of manually modifying the shaders. Two tests are ...
3 years, 9 months ago (2017-03-27 08:45:54 UTC) #32
Zhenyao Mo
On 2017/03/27 08:45:54, xiangze.zhang wrote: > Changed the code to use ShaderTranslator instead of manually ...
3 years, 9 months ago (2017-03-27 17:38:01 UTC) #33
Ken Russell (switch to Gerrit)
The mac_optional_gpu_tests_rel failures are real, but they're http://crbug.com/705156 . We still mustn't land this until ...
3 years, 9 months ago (2017-03-27 20:14:53 UTC) #34
xiangze.zhang
I see the mac_optional_gpu_tests_rel issue is resolved and some flaky tests are disabled. But I ...
3 years, 9 months ago (2017-03-28 02:32:30 UTC) #39
Ken Russell (switch to Gerrit)
On 2017/03/28 02:32:30, xiangze.zhang wrote: > I see the mac_optional_gpu_tests_rel issue is resolved and some ...
3 years, 9 months ago (2017-03-28 03:07:15 UTC) #42
Ken Russell (switch to Gerrit)
Mo: the mac_optional_gpu_tests_rel failures are resolved. Can you re-review? Thanks.
3 years, 8 months ago (2017-03-28 20:31:04 UTC) #45
Zhenyao Mo
lgtm Thanks for improving this CL https://codereview.chromium.org/2764833003/diff/80001/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc File gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc (right): https://codereview.chromium.org/2764833003/diff/80001/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc#newcode9 gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc:9: #include "base/containers/hash_tables.h" nit: ...
3 years, 8 months ago (2017-03-28 20:50:48 UTC) #46
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/2764833003/100001
3 years, 8 months ago (2017-03-29 01:01:17 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/236723)
3 years, 8 months ago (2017-03-29 01:16:22 UTC) #51
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/2764833003/120001
3 years, 8 months ago (2017-03-29 01:29:48 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_TIMED_OUT, build hasn't started yet, builder ...
3 years, 8 months ago (2017-03-29 03:31:06 UTC) #56
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/2764833003/120001
3 years, 8 months ago (2017-03-29 04:59:07 UTC) #58
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/6ca5d0d3ad671604d9a028e71402e9e5ee25f110
3 years, 8 months ago (2017-03-29 05:07:00 UTC) #61
sugoi1
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/2786963002/ by sugoi@chromium.org. ...
3 years, 8 months ago (2017-03-30 14:41:27 UTC) #62
Ken Russell (switch to Gerrit)
On 2017/03/30 14:41:27, sugoi1 wrote: > A revert of this CL (patchset #7 id:120001) has ...
3 years, 8 months ago (2017-03-30 17:15:12 UTC) #63
sunnyps
3 years, 8 months ago (2017-04-03 21:58:42 UTC) #64
Message was sent while issue was closed.
On 2017/03/30 17:15:12, Ken Russell wrote:
> On 2017/03/30 14:41:27, sugoi1 wrote:
> > A revert of this CL (patchset #7 id:120001) has been created in
> > https://codereview.chromium.org/2786963002/ by mailto:sugoi@chromium.org.
> > 
> > The reason for reverting is: This cl broke the "Builder: Linux Release (AMD
R7
> > 240)" bot. See:
> >
>
https://build.chromium.org/p/chromium.gpu.fyi/builders/Linux%20Release%20(AMD...
> > 
> > .
> 
> See http://crbug.com/690122 for more details on the test failures.

This also caused the failures on PowerVR on Android reported here:
https://bugs.chromium.org/p/chromium/issues/detail?id=707161#c7

I took a quick look at the patch but couldn't figure out the issue. Let's figure
it out before relanding this.

Powered by Google App Engine
This is Rietveld 408576698