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

Issue 2348243002: Force CUBE_MAP_POSITIVE_X texture allocation before CopyTexImage2D on Intel Mac (Closed)

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

Description

Force CUBE_MAP_POSITIVE_X texture allocation before CopyTexImage2D on Intel Mac CopyTexImage2D has bug for cube map texture target on Intel Mac, if the CUBE_MAP_POSITIVE_X texture is not allocated yet. This CL works around this bug by doing TexImage2D to allocate the CUBE_MAP_POSITIVE_X texture before CopyTexImage2D if target is one face of a cube map texture. BUG=648197 TEST=deqp/functional/gles3/texturespecification/basic_copyteximage2d.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/45903b6bfa81d0257af4da576e8edee825093b6b Cr-Commit-Position: refs/heads/master@{#420575}

Patch Set 1 #

Patch Set 2 : update expectation #

Total comments: 6

Patch Set 3 : use cube map workaround #

Patch Set 4 : fix DCHECK #

Patch Set 5 : use force_cube_map_positive_x_allocation #

Patch Set 6 : use do_teximage_before_copyteximage_to_cube_map #

Patch Set 7 : update version #

Total comments: 6

Patch Set 8 : not for cube map positive x face #

Patch Set 9 : fix unpack buffer #

Total comments: 2

Patch Set 10 : rebase only #

Patch Set 11 : fix nit #

Patch Set 12 : rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -42 lines) Patch
M content/test/gpu/gpu_tests/webgl2_conformance_expectations.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.h View 1 2 3 4 5 6 7 2 chunks +19 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +71 lines, -38 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 10 11 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (15 generated)
qiankun
PTAL.
4 years, 3 months ago (2016-09-19 14:16:15 UTC) #7
yunchao
On 2016/09/19 14:16:15, qiankun wrote: > PTAL. Good catch, qiankun. I wonder what about GL_TEXTURE_CUBE_MAP_{POSITIVE_X|NEGATIVE_Y|POSITIVE_Y|NEGATIVE_Z|POSITIVE_Z}. ...
4 years, 3 months ago (2016-09-19 15:13:17 UTC) #8
qiankun
On 2016/09/19 15:13:17, yunchao wrote: > On 2016/09/19 14:16:15, qiankun wrote: > > PTAL. > ...
4 years, 3 months ago (2016-09-19 15:58:39 UTC) #9
piman
https://codereview.chromium.org/2348243002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2348243002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode13294 gpu/command_buffer/service/gles2_cmd_decoder.cc:13294: target == GL_TEXTURE_CUBE_MAP_NEGATIVE_X) { Is it /really/ only GL_TEXTURE_CUBE_MAP_NEGATIVE_X ...
4 years, 3 months ago (2016-09-19 20:33:14 UTC) #10
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2348243002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2348243002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode13294 gpu/command_buffer/service/gles2_cmd_decoder.cc:13294: target == GL_TEXTURE_CUBE_MAP_NEGATIVE_X) { On 2016/09/19 20:33:13, piman OOO ...
4 years, 3 months ago (2016-09-19 23:15:10 UTC) #11
qiankun
Thanks piman and Ken. I updated the CL. PTAL. https://codereview.chromium.org/2348243002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2348243002/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode13294 gpu/command_buffer/service/gles2_cmd_decoder.cc:13294: ...
4 years, 3 months ago (2016-09-20 11:34:16 UTC) #13
piman
https://codereview.chromium.org/2348243002/diff/120001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/2348243002/diff/120001/gpu/command_buffer/service/texture_manager.cc#newcode2424 gpu/command_buffer/service/texture_manager.cc:2424: } else { Do we need to restrict this ...
4 years, 3 months ago (2016-09-20 20:51:45 UTC) #15
qiankun
https://codereview.chromium.org/2348243002/diff/120001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/2348243002/diff/120001/gpu/command_buffer/service/texture_manager.cc#newcode2424 gpu/command_buffer/service/texture_manager.cc:2424: } else { On 2016/09/20 20:51:44, piman OOO back ...
4 years, 3 months ago (2016-09-21 02:38:17 UTC) #16
piman
lgtm https://codereview.chromium.org/2348243002/diff/160001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/2348243002/diff/160001/gpu/command_buffer/service/texture_manager.cc#newcode326 gpu/command_buffer/service/texture_manager.cc:326: state_->SetBoundBuffer(GL_PIXEL_UNPACK_BUFFER, nullptr); nit: I don't think we need ...
4 years, 3 months ago (2016-09-21 05:37:20 UTC) #17
Ken Russell (switch to Gerrit)
I defer to piman's review. The code looks good to me.
4 years, 3 months ago (2016-09-22 02:05:35 UTC) #18
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/2348243002/200001
4 years, 3 months ago (2016-09-23 03:02:12 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/73945) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-09-23 03:04:45 UTC) #23
qiankun
https://codereview.chromium.org/2348243002/diff/160001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/2348243002/diff/160001/gpu/command_buffer/service/texture_manager.cc#newcode326 gpu/command_buffer/service/texture_manager.cc:326: state_->SetBoundBuffer(GL_PIXEL_UNPACK_BUFFER, nullptr); On 2016/09/21 05:37:20, piman OOO back 2016-09-26 ...
4 years, 3 months ago (2016-09-23 03:20:14 UTC) #24
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/2348243002/220001
4 years, 3 months ago (2016-09-23 03:20:47 UTC) #27
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 3 months ago (2016-09-23 04:29:18 UTC) #29
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 04:31:02 UTC) #31
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/45903b6bfa81d0257af4da576e8edee825093b6b
Cr-Commit-Position: refs/heads/master@{#420575}

Powered by Google App Engine
This is Rietveld 408576698