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

Issue 2146603005: Fix CopyTexImage2D when using unsized internal formats (Closed)

Created:
4 years, 5 months ago by piman
Modified:
4 years, 5 months ago
Reviewers:
Zhenyao Mo
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

Fix CopyTexImage2D when using unsized internal formats CopyTexImage2D accepts unsized internal formats, but the code didn't properly handle all possible cases, resulting in us storing 0 as format/type in the level info. This can be problematic later on, e.g. triggering asserts if the texture is used as a FBO to copy from. This CL makes sure we're at the very least consistent, but doesn't fully implement the spec which has specific rules to pick an effective internal format depending on the framebuffer format. BUG=None CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/fb68ed91e9fa7851dfc73b29cf0fff2d0cd8d8e6 Cr-Commit-Position: refs/heads/master@{#405511}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -3 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 chunk +15 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 2 chunks +11 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc View 1 chunk +189 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 6 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
piman
4 years, 5 months ago (2016-07-14 01:00:18 UTC) #5
Zhenyao Mo
lgtm
4 years, 5 months ago (2016-07-14 17:06:57 UTC) #8
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/2146603005/1
4 years, 5 months ago (2016-07-14 17:18:50 UTC) #10
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-14 17:18:52 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-14 17:23:43 UTC) #12
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 17:23:51 UTC) #13
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 17:26:29 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/fb68ed91e9fa7851dfc73b29cf0fff2d0cd8d8e6
Cr-Commit-Position: refs/heads/master@{#405511}

Powered by Google App Engine
This is Rietveld 408576698