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

Issue 1283303002: gpu: FBO must be incomplete if the attached texture is not cube complete. (Closed)

Created:
5 years, 4 months ago by dshwang
Modified:
5 years, 4 months ago
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

gpu: FBO must be incomplete if the attached texture is not cube complete. Section 4.4.4 "Framebuffer Completeness" of the ES 3.0.4 spec [1] says that if the color attachment is a cube map texture and the texture isn't cube map complete, then the framebuffer is incomplete. Some drivers accept incomplete cube texture as FBO color attachment. This CL strictly prevent incomplete cube texture from attaching FBO. [1] https://www.khronos.org/registry/gles/specs/3.0/es_spec_3.0.4.pdf TEST=gl_tests.GLCubeMapTextureTests/GLCubeMapTextureTest.ReadPixelsFromIncompleteFBO/* BUG=518889

Patch Set 1 #

Patch Set 2 : Depend on https://codereview.chromium.org/1299683002 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -15 lines) Patch
M gpu/command_buffer/service/framebuffer_manager.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/framebuffer_manager.cc View 1 4 chunks +16 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/tests/gl_cube_map_texture_unittest.cc View 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
dshwang
This CL depends on https://codereview.chromium.org/1280163004 As we discussed in https://codereview.chromium.org/1280163004/#msg14, gpu command buffer allows incomplete ...
5 years, 4 months ago (2015-08-12 17:37:22 UTC) #2
dshwang
sievers, could you review this CL as follower of https://codereview.chromium.org/1280163004 ?
5 years, 4 months ago (2015-08-17 07:10:09 UTC) #3
dshwang
On 2015/08/17 07:10:09, dshwang wrote: > sievers, could you review this CL as follower of ...
5 years, 4 months ago (2015-08-17 16:13:18 UTC) #5
no sievers
What about ES2 and webgl? Did ES3 become stricter here? For EGL we request a ...
5 years, 4 months ago (2015-08-17 20:44:32 UTC) #6
Ken Russell (switch to Gerrit)
On 2015/08/17 20:44:32, sievers wrote: > What about ES2 and webgl? Did ES3 become stricter ...
5 years, 4 months ago (2015-08-17 21:52:35 UTC) #7
dshwang
On 2015/08/17 21:52:35, Ken Russell wrote: > On 2015/08/17 20:44:32, sievers wrote: > > What ...
5 years, 4 months ago (2015-08-18 08:09:03 UTC) #8
dshwang
5 years, 4 months ago (2015-08-18 08:44:46 UTC) #9
Message was sent while issue was closed.
On 2015/08/17 21:52:35, Ken Russell wrote:
> Rendering to cube maps' faces should be well tested; I'm not sure about the
> ReadPixels path, especially in ANGLE.

ReadPixels path is covered by https://codereview.chromium.org/1290053004/

Powered by Google App Engine
This is Rietveld 408576698