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

Issue 481913005: gpu: glCopyTextureCHROMIUM() checks dest internal format incorrectly. (Closed)

Created:
6 years, 4 months ago by dshwang
Modified:
6 years, 4 months ago
Reviewers:
reveman, no sievers
CC:
chromium-reviews, piman+watch_chromium.org, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

gpu: glCopyTextureCHROMIUM() checks dest internal format incorrectly. |internal_format| which a client passes as argument and dest internal format which is the format of current destination texture can be different. If different, glCopyTextureCHROMIUM redefines the destination texture. So we should check dest internal format using |internal_format| argument. In addition, some platforms reports error when |internal_format| is GL_ALPHA, GL_LUMINANCE or GL_LUMINANCE_ALPHA, because those formats can not attached as color attachment of FBO on some platforms. So we restrict |internal_format| to GL_RGB and GL_RGBA. TEST=GLCopyTextureCHROMIUMTest.InternalFormat, GLCopyTextureCHROMIUMTest.RedefineDestinationTexture Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291528

Patch Set 1 #

Total comments: 15

Patch Set 2 : Address reviewser's comments except for glTexSubImage2D #

Patch Set 3 : Build fix on clang #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -20 lines) Patch
M gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt View 1 2 chunks +11 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 3 chunks +23 lines, -19 lines 0 comments Download
M gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc View 1 2 1 chunk +112 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
dshwang
Could you review? It's follow-up CL of crrev/374193002 crrev/374193002 made potential bugs, and it fixes ...
6 years, 4 months ago (2014-08-22 11:07:12 UTC) #1
no sievers
https://codereview.chromium.org/481913005/diff/1/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt File gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt (right): https://codereview.chromium.org/481913005/diff/1/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt#newcode71 gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt:71: INVALID_xxx is generated if <internal_format> is not one of ...
6 years, 4 months ago (2014-08-22 18:07:19 UTC) #2
dshwang
Thank you for quick and awesome review. I fixes your suggestions. Could you review again? ...
6 years, 4 months ago (2014-08-22 19:07:55 UTC) #3
dshwang
https://codereview.chromium.org/481913005/diff/1/gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc File gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc (right): https://codereview.chromium.org/481913005/diff/1/gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc#newcode76 gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc:76: EXPECT_EQ(glGetError(), GL_NO_ERROR); On 2014/08/22 19:07:55, dshwang wrote: > On ...
6 years, 4 months ago (2014-08-22 19:11:43 UTC) #4
no sievers
lgtm
6 years, 4 months ago (2014-08-22 21:02:12 UTC) #5
dshwang
On 2014/08/22 21:02:12, sievers wrote: > lgtm Thank you for reviewing.
6 years, 4 months ago (2014-08-22 21:24:25 UTC) #6
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 4 months ago (2014-08-22 21:24:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/481913005/40001
6 years, 4 months ago (2014-08-22 21:26:24 UTC) #8
commit-bot: I haz the power
6 years, 4 months ago (2014-08-22 22:20:49 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (40001) as 291528

Powered by Google App Engine
This is Rietveld 408576698