Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Issue 1736093002: Add a workaround for copyTexImage2D as it is sometimes broken on OSX. (Closed)

Created:
4 years, 10 months ago by erikchen
Modified:
4 years, 9 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

Add a workaround for copyTexImage2D as it is sometimes broken on OSX. copyTexImage2D fails when all of these conditions are met: 1. The internal format of the new texture is GL_ALPHA, GL_RED, or GL_RG. There are probably a couple more. GL_RGB and GL_RGBA always work fine. 2. The GPU is from Nvidia. 3. The source texture is backed by an IOSurface. BUG=581777 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/38cbbce8977df77712707f9f64ae2e0b15e6f201 Cr-Commit-Position: refs/heads/master@{#381488}

Patch Set 1 #

Patch Set 2 : Typo in comment. #

Patch Set 3 : Rebase. #

Patch Set 4 : Restrict workaround to Nvidia GPUs. #

Total comments: 11

Patch Set 5 : Rebase. #

Patch Set 6 : Working test, maybe. [temp not ready for review] #

Patch Set 7 : Add test. #

Patch Set 8 : Test working locally. [Not ready for review]. #

Patch Set 9 : Fix tests. #

Patch Set 10 : Rebase. #

Patch Set 11 : Comments from kbr. #

Total comments: 8

Patch Set 12 : Comments from zmo. #

Total comments: 4

Patch Set 13 : Comments from kbr. #

Patch Set 14 : Compile error, nits. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -18 lines) Patch
M gpu/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 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 3 chunks +109 lines, -3 lines 0 comments Download
A gpu/command_buffer/tests/gl_copy_tex_image_2d_workaround_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +122 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +7 lines, -1 line 0 comments Download
M gpu/command_buffer/tests/gl_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +101 lines, -13 lines 3 comments Download
M gpu/command_buffer/tests/gl_test_utils.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_test_utils.cc View 1 2 3 4 5 6 7 8 2 chunks +84 lines, -0 lines 0 comments Download
M gpu/config/gpu_driver_bug_list_json.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 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 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/gpu.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 53 (22 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1736093002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1736093002/20001
4 years, 10 months ago (2016-02-25 20:58:24 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/27333) cast_shell_linux on ...
4 years, 10 months ago (2016-02-25 21:13:42 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1736093002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1736093002/40001
4 years, 10 months ago (2016-02-26 01:57:13 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1736093002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1736093002/60001
4 years, 10 months ago (2016-02-26 02:33:26 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-26 03:47:06 UTC) #12
erikchen
kbr: Please review. This CL causes the test conformance_textures_misc_copy_tex_image_2d_formats to pass when IOSurfaces are enabled ...
4 years, 10 months ago (2016-02-26 11:17:28 UTC) #14
Ken Russell (switch to Gerrit)
The code changes look OK, but I am not an owner in this directory. CC'ing ...
4 years, 9 months ago (2016-02-29 22:06:45 UTC) #16
Zhenyao Mo
https://codereview.chromium.org/1736093002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1736093002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode11564 gpu/command_buffer/service/gles2_cmd_decoder.cc:11564: glTexParameteri(original_texture_target, GL_TEXTURE_MIN_FILTER, Why do you need to worry about ...
4 years, 9 months ago (2016-03-02 00:22:41 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1736093002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1736093002/140001
4 years, 9 months ago (2016-03-14 21:53:34 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/195126)
4 years, 9 months ago (2016-03-14 22:56:00 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1736093002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1736093002/160001
4 years, 9 months ago (2016-03-14 23:52:36 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/4400) ios_dbg_simulator_ninja on ...
4 years, 9 months ago (2016-03-14 23:55:23 UTC) #25
erikchen
kbr, zmo: PTAL https://codereview.chromium.org/1736093002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1736093002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode11563 gpu/command_buffer/service/gles2_cmd_decoder.cc:11563: glBindTexture(original_texture_target, temp_texture); On 2016/02/29 22:06:45, Ken ...
4 years, 9 months ago (2016-03-14 23:57:30 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1736093002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1736093002/180001
4 years, 9 months ago (2016-03-14 23:57:55 UTC) #28
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1736093002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1736093002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode11563 gpu/command_buffer/service/gles2_cmd_decoder.cc:11563: glBindTexture(original_texture_target, temp_texture); On 2016/03/14 23:57:30, erikchen wrote: > On ...
4 years, 9 months ago (2016-03-15 00:47:38 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-15 01:08:05 UTC) #31
erikchen
On 2016/03/15 00:47:38, Ken Russell wrote: > https://codereview.chromium.org/1736093002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > > https://codereview.chromium.org/1736093002/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode11563 ...
4 years, 9 months ago (2016-03-15 01:39:50 UTC) #32
Zhenyao Mo
lgtm with nits fixed. https://codereview.chromium.org/1736093002/diff/200001/gpu/command_buffer/tests/gl_manager.cc File gpu/command_buffer/tests/gl_manager.cc (right): https://codereview.chromium.org/1736093002/diff/200001/gpu/command_buffer/tests/gl_manager.cc#newcode114 gpu/command_buffer/tests/gl_manager.cc:114: const gfx::Size& size, nit: wrong ...
4 years, 9 months ago (2016-03-15 17:40:48 UTC) #33
erikchen
https://codereview.chromium.org/1736093002/diff/200001/gpu/command_buffer/tests/gl_manager.cc File gpu/command_buffer/tests/gl_manager.cc (right): https://codereview.chromium.org/1736093002/diff/200001/gpu/command_buffer/tests/gl_manager.cc#newcode114 gpu/command_buffer/tests/gl_manager.cc:114: const gfx::Size& size, On 2016/03/15 17:40:47, Zhenyao Mo wrote: ...
4 years, 9 months ago (2016-03-15 18:08:39 UTC) #34
erikchen
piman: Please review gpu/BUILD.gn and gpu/gpu.gyp.
4 years, 9 months ago (2016-03-15 18:10:56 UTC) #35
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1736093002/diff/220001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1736093002/diff/220001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode11682 gpu/command_buffer/service/gles2_cmd_decoder.cc:11682: glCopyTexImage2D(source_texture_target, 0, temp_internal_format, copyX, Is there any chance that ...
4 years, 9 months ago (2016-03-15 21:11:23 UTC) #36
erikchen
https://codereview.chromium.org/1736093002/diff/220001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1736093002/diff/220001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode11682 gpu/command_buffer/service/gles2_cmd_decoder.cc:11682: glCopyTexImage2D(source_texture_target, 0, temp_internal_format, copyX, On 2016/03/15 21:11:23, Ken Russell ...
4 years, 9 months ago (2016-03-15 22:25:54 UTC) #37
Ken Russell (switch to Gerrit)
Excellent work. The new code looks great. Thank you for persevering with it and for ...
4 years, 9 months ago (2016-03-16 01:21:49 UTC) #38
erikchen
https://codereview.chromium.org/1736093002/diff/260001/gpu/command_buffer/tests/gl_manager.cc File gpu/command_buffer/tests/gl_manager.cc (right): https://codereview.chromium.org/1736093002/diff/260001/gpu/command_buffer/tests/gl_manager.cc#newcode111 gpu/command_buffer/tests/gl_manager.cc:111: class IOSurfaceGpuMemoryBuffer : public gfx::GpuMemoryBuffer { On 2016/03/16 01:21:49, ...
4 years, 9 months ago (2016-03-16 01:27:25 UTC) #39
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1736093002/diff/260001/gpu/command_buffer/tests/gl_manager.cc File gpu/command_buffer/tests/gl_manager.cc (right): https://codereview.chromium.org/1736093002/diff/260001/gpu/command_buffer/tests/gl_manager.cc#newcode111 gpu/command_buffer/tests/gl_manager.cc:111: class IOSurfaceGpuMemoryBuffer : public gfx::GpuMemoryBuffer { On 2016/03/16 01:27:25, ...
4 years, 9 months ago (2016-03-16 01:30:54 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1736093002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1736093002/260001
4 years, 9 months ago (2016-03-16 01:34:07 UTC) #45
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-16 05:20:21 UTC) #47
piman
lgtm
4 years, 9 months ago (2016-03-16 17:39:16 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1736093002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1736093002/260001
4 years, 9 months ago (2016-03-16 17:39:54 UTC) #50
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 9 months ago (2016-03-16 17:45:57 UTC) #51
commit-bot: I haz the power
4 years, 9 months ago (2016-03-16 17:47:30 UTC) #53
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/38cbbce8977df77712707f9f64ae2e0b15e6f201
Cr-Commit-Position: refs/heads/master@{#381488}

Powered by Google App Engine
This is Rietveld 408576698