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

Issue 1376633002: Disallow gl[Compressed]Tex[Sub]Image2D for GL_TEXTURE_RECTANGLE_ARB (Closed)

Created:
5 years, 2 months ago by ccameron
Modified:
5 years, 2 months ago
Reviewers:
piman
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

Disallow gl[Compressed]Tex[Sub]Image2D for GL_TEXTURE_RECTANGLE_ARB An undocumented behavior of CGLTexImageIOSurface2D is that it will fail with kCGLBadState if the bound texture has already had storage specified, e.g, by glTexImage2D. This is a temporary measure for immediate merge into the long-diverged M46. This will be followed-up by breaking the |texture_target| validator into two separate validators. The remaining users of the |texture_target| validator are already in use, except for a multisample framebuffer binding. BUG=518744 Committed: https://crrev.com/69e0ad9b7976975f0b1e94a2164179ca07e4ea34 Cr-Commit-Position: refs/heads/master@{#351384}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix compile #

Patch Set 3 : Fix unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -20 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 3 chunks +23 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc View 1 2 3 chunks +2 lines, -20 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 10 (2 generated)
ccameron
So ... we were considering cutting up the texture_target validator when we introduced rectangle support. ...
5 years, 2 months ago (2015-09-29 03:23:43 UTC) #2
piman
Can we not expose the GL_ARB_texture_rectangle extension if we don't expose it fully (see code ...
5 years, 2 months ago (2015-09-29 16:23:32 UTC) #3
ccameron
Updated (plus tests) https://codereview.chromium.org/1376633002/diff/1/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/1376633002/diff/1/gpu/command_buffer/service/texture_manager.cc#newcode1940 gpu/command_buffer/service/texture_manager.cc:1940: if (texture->target() == GL_TEXTURE_RECTANGLE_ARB) { On ...
5 years, 2 months ago (2015-09-29 18:19:18 UTC) #4
piman
lgtm
5 years, 2 months ago (2015-09-29 18:20:04 UTC) #5
ccameron
Thanks!
5 years, 2 months ago (2015-09-29 18:33:47 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376633002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376633002/40001
5 years, 2 months ago (2015-09-29 18:35:01 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-09-29 20:06:23 UTC) #9
commit-bot: I haz the power
5 years, 2 months ago (2015-09-29 20:07:08 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/69e0ad9b7976975f0b1e94a2164179ca07e4ea34
Cr-Commit-Position: refs/heads/master@{#351384}

Powered by Google App Engine
This is Rietveld 408576698