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

Issue 2421823002: Add workaround for glTex(Sub)Image3D on Intel Macs (Closed)

Created:
4 years, 2 months ago by jiajia.qin
Modified:
4 years, 2 months ago
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add workaround for glTex(Sub)Image3D on Intel Macs On macOS machines with Intel GPUs, glTexImage3D/glTexSubImage3D performs incorrectly when uploading a texture from the bound GL_PIXEL_UNPACK_BUFFER and glPixelStorei has set the GL_UNPACK_IMAGE_HEIGHT parameter to be greater than zero but not equal to the texture's height. It seems that glTexImage3D/glTexSubImage3D uses the texture's height, and not GL_UNPACK_IMAGE_HEIGHT's value, during the upload. Work around this issue by uploading texture layer by layer. BUG=654258 TEST=WebGL 2 conformance tests conformance2/textures/misc/tex-unpack-params.html deqp/functional/gles3/texturespecification/teximage3d_pbo_params.html deqp/functional/gles3/texturespecification/texsubimage3d_pbo_params.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/a45987580db93baa6565efe4cc72380b8631c18b Cr-Commit-Position: refs/heads/master@{#425855}

Patch Set 1 #

Total comments: 4

Patch Set 2 : resolve mo's comments #

Total comments: 1

Patch Set 3 : rebase and fix a nit issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -11 lines) Patch
M content/test/gpu/gpu_tests/webgl2_conformance_expectations.py View 1 2 2 chunks +0 lines, -9 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.h View 1 2 3 chunks +10 lines, -1 line 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 2 3 chunks +91 lines, -0 lines 0 comments Download
M gpu/config/gpu_driver_bug_list_json.cc View 1 2 2 chunks +13 lines, -1 line 0 comments Download
M gpu/config/gpu_driver_bug_workaround_type.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
jiajia.qin
Please take a look. Thanks.
4 years, 2 months ago (2016-10-14 09:03:13 UTC) #8
qiankun
It's a similar work to https://codereview.chromium.org/1963683002/.
4 years, 2 months ago (2016-10-14 09:06:51 UTC) #9
jiajia.qin
4 years, 2 months ago (2016-10-14 09:56:54 UTC) #17
Zhenyao Mo
Mostly looks good with minor optimization suggestion. https://codereview.chromium.org/2421823002/diff/80001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/2421823002/diff/80001/gpu/command_buffer/service/texture_manager.cc#newcode3035 gpu/command_buffer/service/texture_manager.cc:3035: const GLubyte* ...
4 years, 2 months ago (2016-10-14 21:29:09 UTC) #18
jiajia.qin
Mo, please take another look. Thanks. https://codereview.chromium.org/2421823002/diff/80001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/2421823002/diff/80001/gpu/command_buffer/service/texture_manager.cc#newcode3035 gpu/command_buffer/service/texture_manager.cc:3035: const GLubyte* image_pixels ...
4 years, 2 months ago (2016-10-17 05:38:57 UTC) #19
Zhenyao Mo
lgtm https://codereview.chromium.org/2421823002/diff/100001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/2421823002/diff/100001/gpu/command_buffer/service/texture_manager.cc#newcode3053 gpu/command_buffer/service/texture_manager.cc:3053: // Restore unpack state nit: comment move one ...
4 years, 2 months ago (2016-10-17 18:03:46 UTC) #20
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/2421823002/120001
4 years, 2 months ago (2016-10-17 23:03:39 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:120001)
4 years, 2 months ago (2016-10-18 02:04:44 UTC) #25
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 02:08:02 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a45987580db93baa6565efe4cc72380b8631c18b
Cr-Commit-Position: refs/heads/master@{#425855}

Powered by Google App Engine
This is Rietveld 408576698