New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 669168 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Mac
Pri: 2
Type: Bug

Blocking:
issue 651829



Sign in to add a comment

Command buffer does not support texture swizzling

Project Member Reported by bsalomon@chromium.org, Nov 28 2016

Issue description

Skia makes use of GL_TEXTURE_SWIZZLE_R, etc when running on a ES 3.0+ context. It seems that this functionality is not supported in the command buffer in ES 3.0 mode. Using the enums produces errors such as this:

[92165:92165:1128/152525:ERROR:gles2_cmd_decoder_autogen.h(2920)] [.RenderWorker-0x22e8a7e1b620.GpuRasterization]GL ERROR :GL_INVALID_ENUM : glTexParameteri: pname was GL_TEXTURE_SWIZZLE_R

According to kbr@, this functionality was removed from WebGL 2.0 and thus this may not be tested and might have been accidentally broken.
 

Comment 1 by kbr@chromium.org, Nov 29 2016

Cc: kainino@chromium.org

Comment 2 by zmo@chromium.org, Nov 30 2016

Cc: -zmo@chromium.org vmi...@chromium.org
Labels: -Pri-3 Pri-2
Owner: zmo@chromium.org
This is very slow on ANGLE/Windows.  That's why we remove it from WebGL2. It's trivia to add it back in command buffer, but will Skia have the same perf concern as WebGL2 does?

Comment 3 by bsalo...@google.com, Nov 30 2016

We will have the same issue, I have a TODO to not use it when we're running on ANGLE. And we could certainly decide to never use it in Chromium on any OS (at the cost of increased shader compilations).

In general, though, Skia has a preference for version and extension strings to accurately describe the functionality of the context. If we are going to have missing features from the ES3 implementation in the command buffer then I'd like to do something like modify the command buffer's reported version string to somehow indicate a non-standard ES3 subset.

Comment 4 by zmo@chromium.org, Nov 30 2016

We can definitely add it to command buffer (and I will do so soon) and leave the decision to Skia to decide what to do on platforms with perf issues.  Just want to bring this up.

Comment 5 by bsalo...@google.com, Nov 30 2016

Cool, thanks for the reminder!
Project Member

Comment 6 by bugdroid1@chromium.org, Dec 2 2016

Comment 7 by zmo@chromium.org, Dec 2 2016

Status: Fixed (was: Assigned)
bsalomon: please let me know if there are any other issues blocking you from trying Skia on ES3 command buffer.
Will do, thanks!

Sign in to add a comment