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

Issue 2821913002: Force cube map texture complete on Linux AMD (Closed)

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

Description

Force cube map texture complete on Linux AMD CopyTex{Sub}Image2D reports INVALID_OPERATION error if the destination texture is an integer incomplete cube map texture on Linux AMD. Similarly, TexSubImage2D reports OUT_OF_MEMORY error if the destination texture is a srgb incomplete cube map texture on Linux AMD. This is a bug in AMD Linux driver. This CL workarounds this bug by forcing the texture to be cube map complete. BUG=710392, 712117 TEST=webgl2 conformance test 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/2821913002 Cr-Commit-Position: refs/heads/master@{#465915} Committed: https://chromium.googlesource.com/chromium/src/+/9d28c22de85528d1f87bfbf3f88dc531027b24bd

Patch Set 1 : Force cube map texture complete on Linux AMD #

Total comments: 1

Patch Set 2 : Force cube map texture complete on Linux AMD #

Total comments: 5

Patch Set 3 : pure rebase #

Patch Set 4 : fix srgb #

Total comments: 5

Patch Set 5 : dont modify already defined faces #

Patch Set 6 : remove webgl2ores3 condition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -21 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 3 chunks +28 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.h View 1 2 3 2 chunks +2 lines, -14 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 2 3 4 5 3 chunks +29 lines, -1 line 0 comments Download
M gpu/config/gpu_driver_bug_list.json View 1 2 3 2 chunks +13 lines, -1 line 0 comments Download
M gpu/config/gpu_driver_bug_workaround_type.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (29 generated)
qiankun
PTAL. With this workaround conformance test in https://github.com/KhronosGroup/WebGL/pull/2369 can pass now.
3 years, 8 months ago (2017-04-18 08:55:58 UTC) #12
qiankun
https://codereview.chromium.org/2821913002/diff/20001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/2821913002/diff/20001/gpu/command_buffer/service/texture_manager.cc#newcode414 gpu/command_buffer/service/texture_manager.cc:414: workarounds.unpack_image_height_workaround_with_unpack_buffer) {} I moved this constructor to .cc file ...
3 years, 8 months ago (2017-04-18 09:23:44 UTC) #13
qiankun
https://codereview.chromium.org/2821913002/diff/40001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/2821913002/diff/40001/gpu/command_buffer/service/texture_manager.cc#newcode2612 gpu/command_buffer/service/texture_manager.cc:2612: texture_state->force_int_cube_texture_complete && With this workaround, we can fix the ...
3 years, 8 months ago (2017-04-18 16:45:10 UTC) #18
Zhenyao Mo
Mostly looks good with one issue https://codereview.chromium.org/2821913002/diff/40001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/2821913002/diff/40001/gpu/command_buffer/service/texture_manager.cc#newcode2556 gpu/command_buffer/service/texture_manager.cc:2556: defined = defined ...
3 years, 8 months ago (2017-04-18 17:48:02 UTC) #19
qiankun
Zhenyao, thanks for your comments. I updated this CL. Please take another look. https://codereview.chromium.org/2821913002/diff/40001/gpu/command_buffer/service/texture_manager.cc File ...
3 years, 8 months ago (2017-04-19 12:26:35 UTC) #24
Zhenyao Mo
https://codereview.chromium.org/2821913002/diff/80001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/2821913002/diff/80001/gpu/command_buffer/service/texture_manager.cc#newcode2556 gpu/command_buffer/service/texture_manager.cc:2556: defined = defined && width == args.width && height ...
3 years, 8 months ago (2017-04-19 17:11:53 UTC) #25
qiankun
https://codereview.chromium.org/2821913002/diff/80001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/2821913002/diff/80001/gpu/command_buffer/service/texture_manager.cc#newcode2556 gpu/command_buffer/service/texture_manager.cc:2556: defined = defined && width == args.width && height ...
3 years, 8 months ago (2017-04-20 01:35:53 UTC) #26
qiankun
https://codereview.chromium.org/2821913002/diff/80001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/2821913002/diff/80001/gpu/command_buffer/service/texture_manager.cc#newcode2611 gpu/command_buffer/service/texture_manager.cc:2611: (feature_info_->IsWebGL2OrES3Context() && On 2017/04/20 01:35:53, qiankun wrote: > On ...
3 years, 8 months ago (2017-04-20 02:12:32 UTC) #30
Zhenyao Mo
lgtm
3 years, 8 months ago (2017-04-20 03:46:17 UTC) #31
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/2821913002/120001
3 years, 8 months ago (2017-04-20 06:18:41 UTC) #37
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 06:22:18 UTC) #40
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/9d28c22de85528d1f87bfbf3f88d...

Powered by Google App Engine
This is Rietveld 408576698