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

Issue 1107683002: Fix GL error occuring on pbuffer surface. (Closed)

Created:
5 years, 8 months ago by mkollaro
Modified:
5 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix GL_INVALID_OPERATION when querying FB config Due to a possible Mesa bug[1], glGetFramebufferAttachmentParameteriv fails with GL_INVALID_OPERATION when e.g. double buffering is disabled and alpha bits are requested, which happens when pbuffer surfaces are used. Since we don't need double buffering for pbuffer surfaces and enabling it would increase memory consumption, we work around it by not requesting this information when the surface is offscreen (which is always true for pbuffer surfaces). This will cause that the variables `back_buffer_{color_format,has_depth,has_stencil}` stay at their defaults (GL_RGBA, false, false), which shouldn't matter for an offscreen surface. [1] https://bugs.freedesktop.org/show_bug.cgi?id=90162 BUG=474974

Patch Set 1 #

Patch Set 2 : don't enable double buffering, just don't execute problematic part when we don't need to #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (2 generated)
mkollaro
5 years, 8 months ago (2015-04-24 13:00:12 UTC) #2
Nico
Ken or piman are better reviewers for this, removing myself. Turning on double-buffering seems pretty ...
5 years, 8 months ago (2015-04-24 21:57:12 UTC) #4
Ken Russell (switch to Gerrit)
Yes, turning on double-buffering for pbuffers on all GPUs is not acceptable to work around ...
5 years, 8 months ago (2015-04-24 22:12:40 UTC) #5
mkollaro
On 2015/04/24 22:12:40, Ken Russell wrote: > Yes, turning on double-buffering for pbuffers on all ...
5 years, 8 months ago (2015-04-27 14:20:18 UTC) #6
piman
FYI, https://codereview.chromium.org/1081533003/ gets rid of pbuffer surfaces.
5 years, 7 months ago (2015-04-27 23:33:33 UTC) #7
mkollaro
5 years, 7 months ago (2015-05-05 08:35:10 UTC) #8
On 2015/04/27 23:33:33, piman (Very slow to review) wrote:
> FYI, https://codereview.chromium.org/1081533003/ gets rid of pbuffer surfaces.

Yeah, this removes the need for this patch completely. Closing.

Powered by Google App Engine
This is Rietveld 408576698